1 This error indicates that an attempted implementation of a trait method
2 has the wrong number of type or const parameters.
4 For example, the trait below has a method `foo` with a type parameter `T`,
5 but the implementation of `foo` for the type `Bar` is missing this parameter:
9 fn foo<T: Default>(x: T) -> Self;
14 // error: method `foo` has 0 type parameters but its trait declaration has 1
17 fn foo(x: bool) -> Self { Bar }