rust/src/test/ui/compare-method/region-unrelated.stderr

16 lines
637 B
Plaintext
Raw Normal View History

error[E0276]: impl has stricter requirements than trait
2016-10-12 15:38:58 -05:00
--> $DIR/region-unrelated.rs:22:5
|
2016-10-12 15:38:58 -05:00
17 | fn foo() where T: 'a;
| --------------------- definition of `foo` from trait
...
2016-10-12 15:38:58 -05:00
22 | fn foo() where V: 'a { }
| ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `V: 'a`
2016-10-12 15:38:58 -05: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!
= note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
error: aborting due to previous error(s)