1 An associated function for a trait was defined to be static, but an
2 implementation of the trait declared the same function to be a method (i.e., to
3 take a `self` parameter).
5 Erroneous code example:
15 // error, method `foo` has a `&self` declaration in the impl, but not in
21 When a type implements a trait's associated function, it has to use the same
22 signature. So in this case, since `Foo::foo` does not take any argument and
23 does not return anything, its implementation on `Bar` should be the same: