fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0053]: method `foo` has an incompatible type for trait 2 --> $DIR/impl-generic-mismatch-ab.rs:8:32 3 | 4LL | fn foo<A: Debug>(&self, a: &A, b: &impl Debug); 5 | -- type in trait 6... 7LL | fn foo<B: Debug>(&self, a: &impl Debug, b: &B) { } 8 | - ^^^^^^^^^^^ expected type parameter `B`, found type parameter `impl Debug` 9 | | 10 | expected type parameter 11 | 12 = note: expected fn pointer `fn(&(), &B, &impl Debug)` 13 found fn pointer `fn(&(), &impl Debug, &B)` 14 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound 15 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0053`.