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