If “I drank a cup” means the drink inside it, what is the metonymic relation?

Supplementary Practice — Advanced Rhetorical Analysis and Worked Texts