2017-07-26 23:51:09 -05:00
|
|
|
error: impl has stricter requirements than trait
|
2017-06-24 21:30:20 -05:00
|
|
|
--> $DIR/region-unrelated.rs:19:5
|
2016-10-05 09:17:14 -05:00
|
|
|
|
|
2017-06-24 21:30:20 -05:00
|
|
|
14 | fn foo() where T: 'a;
|
2016-10-05 09:17:14 -05:00
|
|
|
| --------------------- definition of `foo` from trait
|
|
|
|
...
|
2017-06-24 21:30:20 -05:00
|
|
|
19 | fn foo() where V: 'a { }
|
2016-10-05 09:17:14 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `V: 'a`
|
2016-10-12 15:38:58 -05:00
|
|
|
|
|
2017-01-05 20:55:36 -06:00
|
|
|
= note: #[deny(extra_requirement_in_impl)] on by default
|
2016-10-12 15:38:58 -05: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 16:17:35 -05:00
|
|
|
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
|
2016-10-05 09:17:14 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2016-10-05 09:17:14 -05:00
|
|
|
|