A couple of examples:
1. Donor (decades ago) created a scholarship for boys from his old school (boys schools) to come and study at my institution. However, since then, the school has become co-ed and we now get the occasional situation when no boys apply, but we have exceptional female students applying. The trust which controls the scholarship will not allow us to award the scholarship to females as that will contravene the will.
2. We had one recently deceased donor donate $10k in her will for daffodils for our grounds. Our grounds are not that large nor are there many suitable places for the daffodils - eek! Luckily we were able to discuss the issue with her daughter and modified the request to become some memorial benches and daffodils.