Skip to content

Commit 2cb92d1

Browse files
committed
fix error messages relating to removing lint for E0276
1 parent 98570bf commit 2cb92d1

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
error: impl has stricter requirements than trait
1+
error[E0276]: impl has stricter requirements than trait
22
--> $DIR/proj-outlives-region.rs:19:5
33
|
44
14 | fn foo() where T: 'a;
55
| --------------------- definition of `foo` from trait
66
...
77
19 | fn foo() where U: 'a { } //~ ERROR E0276
88
| ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: 'a`
9-
|
10-
= note: #[deny(extra_requirement_in_impl)] on by default
11-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
12-
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
139

1410
error: aborting due to previous error
1511

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
error: impl has stricter requirements than trait
1+
error[E0276]: impl has stricter requirements than trait
22
--> $DIR/region-unrelated.rs:19:5
33
|
44
14 | fn foo() where T: 'a;
55
| --------------------- definition of `foo` from trait
66
...
77
19 | fn foo() where V: 'a { }
88
| ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `V: 'a`
9-
|
10-
= note: #[deny(extra_requirement_in_impl)] on by default
11-
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
12-
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
139

1410
error: aborting due to previous error
1511

0 commit comments

Comments
 (0)