]> git.proxmox.com Git - rustc.git/blame - src/test/ui/compare-method/traits-misc-mismatch-1.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / compare-method / traits-misc-mismatch-1.stderr
CommitLineData
c30ab7b3 1error[E0276]: impl has stricter requirements than trait
0731742a 2 --> $DIR/traits-misc-mismatch-1.rs:27:5
c30ab7b3 3 |
0531ce1d 4LL | fn test_error1_fn<T: Eq>(&self);
c30ab7b3
SL
5 | -------------------------------- definition of `test_error1_fn` from trait
6...
0531ce1d 7LL | fn test_error1_fn<T: Ord>(&self) {}
1b1a35ee 8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: Ord`
c30ab7b3
SL
9
10error[E0276]: impl has stricter requirements than trait
0731742a 11 --> $DIR/traits-misc-mismatch-1.rs:31:5
c30ab7b3 12 |
0531ce1d 13LL | fn test_error2_fn<T: Eq + Ord>(&self);
c30ab7b3
SL
14 | -------------------------------------- definition of `test_error2_fn` from trait
15...
0531ce1d 16LL | fn test_error2_fn<T: Eq + B>(&self) {}
ff7c6d11 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
c30ab7b3
SL
18
19error[E0276]: impl has stricter requirements than trait
0731742a 20 --> $DIR/traits-misc-mismatch-1.rs:35:5
c30ab7b3 21 |
0531ce1d 22LL | fn test_error3_fn<T: Eq + Ord>(&self);
c30ab7b3
SL
23 | -------------------------------------- definition of `test_error3_fn` from trait
24...
0531ce1d 25LL | fn test_error3_fn<T: B + Eq>(&self) {}
ff7c6d11 26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
c30ab7b3
SL
27
28error[E0276]: impl has stricter requirements than trait
0731742a 29 --> $DIR/traits-misc-mismatch-1.rs:45:5
c30ab7b3 30 |
0531ce1d 31LL | fn test_error5_fn<T: A>(&self);
c30ab7b3
SL
32 | ------------------------------- definition of `test_error5_fn` from trait
33...
0531ce1d 34LL | fn test_error5_fn<T: B>(&self) {}
ff7c6d11 35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
c30ab7b3
SL
36
37error[E0276]: impl has stricter requirements than trait
0731742a 38 --> $DIR/traits-misc-mismatch-1.rs:51:5
c30ab7b3 39 |
0531ce1d 40LL | fn test_error7_fn<T: A>(&self);
c30ab7b3
SL
41 | ------------------------------- definition of `test_error7_fn` from trait
42...
0531ce1d 43LL | fn test_error7_fn<T: A + Eq>(&self) {}
1b1a35ee 44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: Eq`
c30ab7b3
SL
45
46error[E0276]: impl has stricter requirements than trait
0731742a 47 --> $DIR/traits-misc-mismatch-1.rs:54:5
c30ab7b3 48 |
0531ce1d 49LL | fn test_error8_fn<T: B>(&self);
c30ab7b3
SL
50 | ------------------------------- definition of `test_error8_fn` from trait
51...
0531ce1d 52LL | fn test_error8_fn<T: C>(&self) {}
ff7c6d11 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: C`
c30ab7b3
SL
54
55error[E0276]: impl has stricter requirements than trait
0731742a 56 --> $DIR/traits-misc-mismatch-1.rs:67:5
c30ab7b3 57 |
0531ce1d 58LL | fn method<G:Getter<isize>>(&self);
c30ab7b3
SL
59 | ---------------------------------- definition of `method` from trait
60...
0531ce1d 61LL | fn method<G: Getter<usize>>(&self) {}
ff7c6d11 62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `G: Getter<usize>`
c30ab7b3 63
041b39d2 64error: aborting due to 7 previous errors
c30ab7b3 65
0531ce1d 66For more information about this error, try `rustc --explain E0276`.