2017-07-27 04:51:09 +00:00
|
|
|
error: impl has stricter requirements than trait
|
2017-06-25 02:30:20 +00:00
|
|
|
--> $DIR/proj-outlives-region.rs:19:5
|
2016-10-05 14:17:14 +00:00
|
|
|
|
|
2017-06-25 02:30:20 +00:00
|
|
|
14 | fn foo() where T: 'a;
|
2016-10-05 14:17:14 +00:00
|
|
|
| --------------------- definition of `foo` from trait
|
|
|
|
...
|
2017-06-25 02:30:20 +00:00
|
|
|
19 | fn foo() where U: 'a { } //~ ERROR E0276
|
2016-10-05 14:17:14 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: 'a`
|
2016-10-12 20:38:58 +00:00
|
|
|
|
|
2017-01-06 02:55:36 +00:00
|
|
|
= note: #[deny(extra_requirement_in_impl)] on by default
|
2016-10-12 20:38:58 +00:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
2016-10-19 21:17:35 +00:00
|
|
|
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
|
2016-10-05 14:17:14 +00:00
|
|
|
|
2017-07-02 10:49:30 +00:00
|
|
|
error: aborting due to previous error
|
2016-10-05 14:17:14 +00:00
|
|
|
|