Not directly (as it would be considered unlawful in the USA, under most conditions). I have quit jobs after experiencing "mental illness microaggressions," or the stigmatizing speech that even professionals within the field of psychology utilize at times. It's sad how people in general stigmatize mental illness, but even worse when it's your boss, co-workers, mentor in college, or peers in college. Being indirectly fired for having a mental illness typically occurs shortly after disclosure. The boss will sometimes use gaslighting or stonewalling techniques to make you voluntarily leave, such as questioning your abilities or thinking patterns or communication style or relations with your co-workers. Another horrible technique is when the boss gossips about you to other co-workers to make your time there miserable, such as when the boss asks other co-workers to avoid you, ostracize you, or leave you out of important projects and teamwork. The most direct forms of firing often come after disclosure of mental illness and one of the methods above. I've only experienced that once in college, of all places. I didn't have enough evidence to claim discrimination, but I had enough clues over the span of three years in a clinical lab that demonstrated my mentor's and grad student peers' disdain for those who have mental illnesses and attempt to pursue graduate school, or those with certain mental disabilities. It hurts!
(((safe hugs))) to anyone who shares in these horrible discriminatory experiences.