@@ -5,7 +5,7 @@ error[E0276]: impl has stricter requirements than trait
5
5
| -------------------------------- definition of `test_error1_fn` from trait
6
6
...
7
7
36 | fn test_error1_fn<T: Ord>(&self) {}
8
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::cmp::Ord`
8
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::cmp::Ord`
9
9
10
10
error[E0276]: impl has stricter requirements than trait
11
11
--> $DIR/traits-misc-mismatch-1.rs:40:5
@@ -14,7 +14,7 @@ error[E0276]: impl has stricter requirements than trait
14
14
| -------------------------------------- definition of `test_error2_fn` from trait
15
15
...
16
16
40 | fn test_error2_fn<T: Eq + B>(&self) {}
17
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
17
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
18
18
19
19
error[E0276]: impl has stricter requirements than trait
20
20
--> $DIR/traits-misc-mismatch-1.rs:44:5
@@ -23,7 +23,7 @@ error[E0276]: impl has stricter requirements than trait
23
23
| -------------------------------------- definition of `test_error3_fn` from trait
24
24
...
25
25
44 | fn test_error3_fn<T: B + Eq>(&self) {}
26
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
26
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
27
27
28
28
error[E0276]: impl has stricter requirements than trait
29
29
--> $DIR/traits-misc-mismatch-1.rs:54:5
@@ -32,7 +32,7 @@ error[E0276]: impl has stricter requirements than trait
32
32
| ------------------------------- definition of `test_error5_fn` from trait
33
33
...
34
34
54 | fn test_error5_fn<T: B>(&self) {}
35
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
35
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: B`
36
36
37
37
error[E0276]: impl has stricter requirements than trait
38
38
--> $DIR/traits-misc-mismatch-1.rs:60:5
@@ -41,7 +41,7 @@ error[E0276]: impl has stricter requirements than trait
41
41
| ------------------------------- definition of `test_error7_fn` from trait
42
42
...
43
43
60 | fn test_error7_fn<T: A + Eq>(&self) {}
44
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::cmp::Eq`
44
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::cmp::Eq`
45
45
46
46
error[E0276]: impl has stricter requirements than trait
47
47
--> $DIR/traits-misc-mismatch-1.rs:63:5
@@ -50,7 +50,7 @@ error[E0276]: impl has stricter requirements than trait
50
50
| ------------------------------- definition of `test_error8_fn` from trait
51
51
...
52
52
63 | fn test_error8_fn<T: C>(&self) {}
53
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: C`
53
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: C`
54
54
55
55
error[E0276]: impl has stricter requirements than trait
56
56
--> $DIR/traits-misc-mismatch-1.rs:76:5
@@ -59,7 +59,7 @@ error[E0276]: impl has stricter requirements than trait
59
59
| ---------------------------------- definition of `method` from trait
60
60
...
61
61
76 | fn method<G: Getter<usize>>(&self) {}
62
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `G: Getter<usize>`
62
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `G: Getter<usize>`
63
63
64
64
error: aborting due to 7 previous errors
65
65
0 commit comments