]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/region-unrelated.stderr
note individual lint name set via lint group attribute in notes
[rust.git] / src / test / ui / compare-method / region-unrelated.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/region-unrelated.rs:22:5
3    |
4 17 |     fn foo() where T: 'a;
5    |     --------------------- definition of `foo` from trait
6 ...
7 22 |     fn foo() where V: 'a { }
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
14 error: aborting due to previous error
15