1 error[E0049]: method `foo` has 1 type parameter but its trait declaration has 0 type parameters
2 --> $DIR/type-arg-mismatch-due-to-impl-trait.rs:10:5
4 LL | fn foo(&self, t: Self::T);
5 | -------------------------- expected 0 type parameters
7 LL | fn foo(&self, t: impl Clone) {}
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found 1 type parameter
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0049`.