I would be a little annoyed but you never know the reasons for this person getting the job or you not getting the job IYKWIM.
In my old job my team leader was adament i was capable of doing a higher position, she suggested me for different positions multiple times and although managent agreed i was capable they required me in the role i was in more so than the higher position.
They did put someone less qualified in and he was basically my manager but we worked together really well and he would never have been able to complete the training aspect of the job i currently held, so while i was annoyed i knew it wasn't about me personally but more who was required where.

I would have a chat with your manager just ask them if you were considered for the role or if there was anything in particular you need to do in your current role to be looked at closer next time.. IYKWIM.
Go in with the attitude you don't mind but you are quite interested in a change in position and how best to achieve it.