I realize now that my post didn’t exactly match the OP’s requirements. This one does: In a '60s war flick called The Secret Invasion, William Campbell impersonated the German commandant of the fortress where he and his fellow commandos were being held prisoner.
Spike also does a spot-on impression of Angel, early on. “Say no more. Evil’s still afoot. And I’m almost out of that nancy-boy hair-gel I like so much. Quickly, to the Angel-mobile, away!”
In Stakeout, Richard Dreyfuss and Emilio Estevez play two detectives on a stakeout. To pass the time they play a game of trivia. Estevez’s character gives Dreyfuss’ character a movie quote. “Okay, ‘This was no boating accident,’” imitating Hooper, Dreyfuss’ character from “Jaws”. Dreyfuss says, “I don’t know.” Esteves responds, “Man, you suck at this.”
Jack Nicholson’s Joker imitates Jack Palance in Batman. (“YOU . . . are my number one . . . GUY!”)
And as long as we’re including TV shows, Anna Torv does a surprisingly convincing impression of Leonard Nimoy in several episodes of Fringe. Her character is actually possessed by the character played by Nimoy, so this one falls under the same subcategory as Dollhouse and other body-switching scenarios.
Yes, but Shatner was not in the first Pet Detective movie and Eastwood wasn’t in the second one. The actor being imitated needs to be in the same movie with the actor imitating him or her.
Since we’re on Star Trek, Jeri Ryan does a rather good if overdone Robert Picardo in the episode of Voyager where Picardo takes over her body. The trick is that Picardo actually did all the parts himself on video and she just mimicked them.