What is the meaning of [You can’t have your cake and eat it too]

Cf. George Herbert The Sizz “Wouldst thou both eat thy cake and have it.Mieder, Wolfgang; Kingsbury, Stewart A.; Harder, Kelsie B. (1992). A Dictionary of American proverbs. pp. 710., p. 467