summary refs log tree commit diff
path: root/src/test/ui/compare-method/traits-misc-mismatch-1.stderr
blob: e99ce95b371cc79341680ca1a715f865ad9b2634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:36:5
   |
LL |     fn test_error1_fn<T: Eq>(&self);
   |     -------------------------------- definition of `test_error1_fn` from trait
...
LL |     fn test_error1_fn<T: Ord>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::cmp::Ord`

error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:40:5
   |
LL |     fn test_error2_fn<T: Eq + Ord>(&self);
   |     -------------------------------------- definition of `test_error2_fn` from trait
...
LL |     fn test_error2_fn<T: Eq + B>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`

error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:44:5
   |
LL |     fn test_error3_fn<T: Eq + Ord>(&self);
   |     -------------------------------------- definition of `test_error3_fn` from trait
...
LL |     fn test_error3_fn<T: B + Eq>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`

error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:54:5
   |
LL |     fn test_error5_fn<T: A>(&self);
   |     ------------------------------- definition of `test_error5_fn` from trait
...
LL |     fn test_error5_fn<T: B>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`

error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:60:5
   |
LL |     fn test_error7_fn<T: A>(&self);
   |     ------------------------------- definition of `test_error7_fn` from trait
...
LL |     fn test_error7_fn<T: A + Eq>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::cmp::Eq`

error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:63:5
   |
LL |     fn test_error8_fn<T: B>(&self);
   |     ------------------------------- definition of `test_error8_fn` from trait
...
LL |     fn test_error8_fn<T: C>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: C`

error[E0276]: impl has stricter requirements than trait
  --> $DIR/traits-misc-mismatch-1.rs:76:5
   |
LL |     fn method<G:Getter<isize>>(&self);
   |     ---------------------------------- definition of `method` from trait
...
LL |     fn method<G: Getter<usize>>(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `G: Getter<usize>`

error: aborting due to 7 previous errors

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