]> git.proxmox.com Git - rustc.git/blob - src/test/ui/compare-method/proj-outlives-region.stderr
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / ui / compare-method / proj-outlives-region.stderr
1 error[E0276]: impl has stricter requirements than trait
2 --> $DIR/proj-outlives-region.rs:22:5
3 |
4 17 | fn foo() where T: 'a;
5 | --------------------- definition of `foo` from trait
6 ...
7 22 | fn foo() where U: 'a { } //~ ERROR E0276
8 | ^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `U: 'a`
9 |
10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 = note: for more information, see issue #37166 <https://github.com/rust-lang/rust/issues/37166>
12 note: lint level defined here
13 --> $DIR/proj-outlives-region.rs:12:9
14 |
15 12 | #![deny(extra_requirement_in_impl)]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^
17
18 error: aborting due to previous error
19