you can't have your cake and eat it

Related to you can't have your cake and eat it: You can't have your cake and eat it too

have (one's) cake and eat it (too)

To have or do two things that one desires that are normally contradictory or impossible to have or do simultaneously. Because "have" can also mean "eat," this expression may seem redundant. However, it is based on the meaning of "have" as "to possess," i.e., to maintain possession of one's cake while still eating it, an obvious impossibility. You're never going to save enough money to buy a house if you keep buying expensive appliances and cars. You can't have your cake and eat it, too. Too many people want to have their cake and eat it, demanding all sorts of social benefits from the government but being unwilling to pay any taxes to fund them.
See also: and, cake, eat, have

you can't have your cake and eat it(, too)

proverb You cannot have or do two things that are both desirable but normally contradictory or impossible to have or do simultaneously. Because "have" can also mean "eat," this expression may seem redundant. However, it is based on the meaning of "have" as "to possess," i.e., to maintain possession of one's cake while still eating it, an obvious impossibility. You're never going to save enough money to buy a house if you keep buying expensive crap you don't need. You can't have your cake and eat it, too. The boss wants to be everyone's friend in the office while still having their respect and compliance, but you can't have your cake and eat it.
See also: and, cake, eat, have
Farlex Dictionary of Idioms.

you can't have your cake and eat it

you can't enjoy both of two desirable but mutually exclusive alternatives. proverb
See also: and, cake, eat, have
Farlex Partner Idioms Dictionary
See also:
  • eat one's cake and have it (too)
  • eat one's cake and have it, too
  • worldly
  • worldly desires
  • earthly
  • earthly desires
  • 22
  • a Catch 22
  • a catch-22 situation
  • Catch-22