File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
src/test/ui/compare-method Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
- error: impl has stricter requirements than trait
1
+ error[E0276] : impl has stricter requirements than trait
2
2
--> $DIR/proj-outlives-region.rs:19:5
3
3
|
4
4
14 | fn foo() where T: 'a;
5
5
| --------------------- definition of `foo` from trait
6
6
...
7
7
19 | fn foo() where U: 'a { } //~ ERROR E0276
8
8
| ^^^^^^^^^^^^^^^^^^^^^^^^ 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>
13
9
14
10
error: aborting due to previous error
15
11
Original file line number Diff line number Diff line change 1
- error: impl has stricter requirements than trait
1
+ error[E0276] : impl has stricter requirements than trait
2
2
--> $DIR/region-unrelated.rs:19:5
3
3
|
4
4
14 | fn foo() where T: 'a;
5
5
| --------------------- definition of `foo` from trait
6
6
...
7
7
19 | fn foo() where V: 'a { }
8
8
| ^^^^^^^^^^^^^^^^^^^^^^^^ 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>
13
9
14
10
error: aborting due to previous error
15
11
You can’t perform that action at this time.
0 commit comments