No more anonymous trait parameters

Minimum Rust version: 1.31

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:

  1. #![allow(unused_variables)]
  2. fn main() {
  3. trait Foo {
  4. fn foo(&self, u8);
  5. }
  6. }

In the 2018 edition, all parameters must be given an argument name (even if it's just_):

  1. #![allow(unused_variables)]
  2. fn main() {
  3. trait Foo {
  4. fn foo(&self, baz: u8);
  5. }
  6. }