]> git.proxmox.com Git - rustc.git/blame - src/test/ui/compare-method/reordered-type-param.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / compare-method / reordered-type-param.stderr
CommitLineData
c30ab7b3 1error[E0053]: method `b` has an incompatible type for trait
0731742a 2 --> $DIR/reordered-type-param.rs:16:30
c30ab7b3 3 |
532ac7d7 4LL | fn b<F:Clone,G>(&self, _x: G) -> G { panic!() }
cdc7bbd5
XL
5 | - - ^
6 | | | |
7 | | | expected type parameter `F`, found type parameter `G`
8 | | | help: change the parameter type to match the trait: `F`
60c5eb7d
XL
9 | | found type parameter
10 | expected type parameter
c30ab7b3 11 |
a2a8927a
XL
12note: type in trait
13 --> $DIR/reordered-type-param.rs:7:29
14 |
15LL | fn b<C:Clone,D>(&self, x: C) -> C;
16 | ^
60c5eb7d
XL
17 = note: expected fn pointer `fn(&E, F) -> F`
18 found fn pointer `fn(&E, G) -> G`
e1599b0c
XL
19 = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
20 = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
c30ab7b3 21
041b39d2 22error: aborting due to previous error
c30ab7b3 23
0531ce1d 24For more information about this error, try `rustc --explain E0053`.