Feature matching in LSTM Network

When it comes to generating loss by feature matching it is pretty convenient on CNN but I want to know how can we do feature matching loss in an RNN?