summary refs log tree commit diff
path: root/src/test/ui/impl-trait/impl-generic-mismatch-ab.stderr
blob: 77ecdf2f5acf06b9ff09fb96b2a69f8a927f8df1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0053]: method `foo` has an incompatible type for trait
  --> $DIR/impl-generic-mismatch-ab.rs:18:32
   |
LL |     fn foo<A: Debug>(&self, a: &A, b: &impl Debug);
   |                                -- type in trait
...
LL |     fn foo<B: Debug>(&self, a: &impl Debug, b: &B) { }
   |                                ^^^^^^^^^^^ expected type parameter, found a different type parameter
   |
   = note: expected type `fn(&(), &B, &impl Debug)`
              found type `fn(&(), &impl Debug, &B)`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0053`.