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