2016-10-05 10:17:14 -04:00
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2016-10-12 16:38:58 -04:00
|
|
|
--> $DIR/proj-outlives-region.rs:22:5
|
2016-10-05 10:17:14 -04:00
|
|
|
|
|
2016-10-12 16:38:58 -04:00
|
|
|
17 | fn foo() where T: 'a;
|
2016-10-05 10:17:14 -04:00
|
|
|
| --------------------- definition of `foo` from trait
|
|
|
|
...
|
2016-10-12 16:38:58 -04:00
|
|
|
22 | fn foo() where U: 'a { } //~ ERROR E0276
|
2016-10-05 10:17:14 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: 'a`
|
2016-10-12 16:38:58 -04:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #18937 <https://github.com/rust-lang/rust/issues/18937>
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/proj-outlives-region.rs:12:9
|
|
|
|
|
|
|
|
|
12 | #![deny(extra_requirement_in_impl)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2016-10-05 10:17:14 -04:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|