Trevor Noah thanked fellow comedian Jim Carrey for helping him overcome depression.

RELATED: Trevor Noah Tackles Donald Trump Through Johnny Cash Song

Noah, 33, explained how he knew nothing of his own mental illness before learning of Carrey’s personal struggles. “You can’t win at comedy,” the “Daily Show” host told ET Canada at the Just For Laughs comedy festival in Montreal. “Every comedian knows, you’re going to have your good days, you’re going to have your bad days but you don’t win.”

“Winning is getting to the end without committing suicide, and Jim Carrey was one of the first comedians that described the beast that many of us face in this room and that’s depression,” Noah continued. “I didn’t know what that thing was. I just thought I liked sleeping for weeks on end sometimes, and then I read [Carrey’s] story and I was like, ‘Oh s**t, that’s what’s going on,’ and I thank you because, you know, I found a way to fight it.”

“I found a way to build a community and that’s what this place is, it’s a community of people trying to do something.”

RELATED: Lena Heady Opens Up About Post-Natal Depression

Carey, now 55, used to take Prozac to help cope with depression, but has since gone cold turkey from medication and even coffee.

Click to View Gallery
Star Spotting