Anonymous trait function parameters deprecated
Summary
- Trait function parameters may use any irrefutable pattern when the function has a body.
Details
In accordance with RFC #1685, parameters in trait method declarations are no longer allowed to be anonymous.
For example, in the 2015 edition, this was allowed:
In the 2018 edition, all parameters must be given an argument name (even if it's just
_
):