Credit: Splash News; George Pimentel/FilmMagic

Who would have guessed that John Mayer's celebrity look-alike is Johnny Depp?

When the 33-year-old "Heartbreak Warfare" musician emerged from a Beverly Hills medical building on Thursday, he bore an uncanny resemblance to the 48-year-old Pirates of the Caribbean star.

Wearing aviator sunglasses, a brimmed hat and a plaid shirt, the shaggy-haired singer looked eerily similar to Depp at the Cannes Film Festival earlier this year.

Mayer, who hasn't released a new album since November 2009, has kept a relatively low-profile since quitting Twitter last September.