]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/reordered-type-param.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / compare-method / reordered-type-param.stderr
1 error[E0053]: method `b` has an incompatible type for trait
2   --> $DIR/reordered-type-param.rs:16:30
3    |
4 LL |   fn b<C:Clone,D>(&self, x: C) -> C;
5    |                             - type in trait
6 ...
7 LL |   fn b<F:Clone,G>(&self, _x: G) -> G { panic!() } //~ ERROR method `b` has an incompatible type
8    |                              ^ expected type parameter, found a different type parameter
9    |
10    = note: expected type `fn(&E, F) -> F`
11               found type `fn(&E, G) -> G`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0053`.