In The Wolverine, Yukio is a mutant that has the power to see how people she touches are going to die. At one point in the movie, she tells Logan that she saw his death:
I saw you die, holding your own heart in your hand.
In that movie, this scene leads into one where Logan
literally operates on himself by removing his own heart
but while he flatlines, he obviously doesn't die. This leads the viewer to suspect that Yukio's vision must have been confused by Logan's healing factor, and the whole "prophecy" never comes up again.
Fast forward to the end of Logan, and we see:
Logan dying, holding Laura's hand in his own.
Was this scene shot intentionally so that it paid off Yukio's prophecy, or was this just coincidental?