This, I believe, is what they call foreshadowing.