The Druid's Wild Shape class feature states, in part:
[...] If the creature has any legendary or lair actions, you can’t use them.
I do not recall ever seeing any creatures with Legendary or Lair Actions that were also eligible for the Druid's Wild Shape feature, even up to the 20th-level Moon Druid's selection of CR 6 beasts.
Do any such beasts exist in official publications, such that this rule would need to be applied?