]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/non_lifetime_binders/drop-impl-pred.no.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / traits / non_lifetime_binders / drop-impl-pred.no.stderr
CommitLineData
49aad941
FG
1warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/drop-impl-pred.rs:6:12
3 |
4LL | #![feature(non_lifetime_binders)]
5 | ^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
8 = note: `#[warn(incomplete_features)]` on by default
9
10error[E0367]: `Drop` impl requires `H: Foo` but the struct it is implemented for does not
11 --> $DIR/drop-impl-pred.rs:19:15
12 |
13LL | for<H> H: Foo,
14 | ^^^
15 |
16note: the implementor must specify the same requirement
17 --> $DIR/drop-impl-pred.rs:12:1
18 |
19LL | struct Bar<T>(T) where T: Foo;
20 | ^^^^^^^^^^^^^
21
4b012472 22error: aborting due to 1 previous error; 1 warning emitted
49aad941
FG
23
24For more information about this error, try `rustc --explain E0367`.