1 error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
5 | -------------- `&self` used in trait
8 | ^^^^^^^^ expected `&self` in impl
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0186`.