1 error[E0053]: method `foo` has an incompatible type for trait
2 --> $DIR/impl-generic-mismatch-ab.rs:8:32
4 LL | fn foo<A: Debug>(&self, a: &A, b: &impl Debug);
7 LL | fn foo<B: Debug>(&self, a: &impl Debug, b: &B) { }
8 | ^^^^^^^^^^^ expected type parameter, found a different type parameter
10 = note: expected type `fn(&(), &B, &impl Debug)`
11 found type `fn(&(), &impl Debug, &B)`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0053`.