In the first half of the movie, Nash's delusions are presented as he sees them. So several major characters, including the one portrayed by Ed Harris, turn out to be hallucinations.  The closest thing to this in another movie is Fight Club.