]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/impl-generic-mismatch-ab.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / impl-trait / impl-generic-mismatch-ab.stderr
1 error[E0053]: method `foo` has an incompatible type for trait
2   --> $DIR/impl-generic-mismatch-ab.rs:8:32
3    |
4 LL |     fn foo<A: Debug>(&self, a: &A, b: &impl Debug);
5    |                                -- type in trait
6 ...
7 LL |     fn foo<B: Debug>(&self, a: &impl Debug, b: &B) { }
8    |                                ^^^^^^^^^^^ expected type parameter, found a different type parameter
9    |
10    = note: expected type `fn(&(), &B, &impl Debug)`
11               found type `fn(&(), &impl Debug, &B)`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0053`.