[Solved] Example of Rust By Example can not be built with Rust 2018 Edition

Anonymous parameters are no longer allowed in trait method declarations.

You can read about it here.

As @RustyYato says you can use an underscore as a replacement for variable names you don't care about, eg.

fn contains(&self, _: &A, _: &B) -> bool;

1 Like