|
| 1 | +warning: the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes |
| 2 | + --> $DIR/diagnostic-hir-wf-check.rs:4:12 |
| 3 | + | |
| 4 | +LL | #![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 | + |
| 10 | +error[E0277]: the trait bound `(): B` is not satisfied |
| 11 | + --> $DIR/diagnostic-hir-wf-check.rs:13:12 |
| 12 | + | |
| 13 | +LL | fn b() -> (W<()>, impl for<C> A<C>) { (W(()), ()) } |
| 14 | + | ^^^^^ the trait `B` is not implemented for `()` |
| 15 | + | |
| 16 | +help: this trait has no implementations, consider adding one |
| 17 | + --> $DIR/diagnostic-hir-wf-check.rs:10:1 |
| 18 | + | |
| 19 | +LL | trait B {} |
| 20 | + | ^^^^^^^ |
| 21 | +note: required by a bound in `W` |
| 22 | + --> $DIR/diagnostic-hir-wf-check.rs:11:13 |
| 23 | + | |
| 24 | +LL | struct W<T: B>(T); |
| 25 | + | ^ required by this bound in `W` |
| 26 | + |
| 27 | +error[E0277]: the trait bound `(): B` is not satisfied |
| 28 | + --> $DIR/diagnostic-hir-wf-check.rs:13:42 |
| 29 | + | |
| 30 | +LL | fn b() -> (W<()>, impl for<C> A<C>) { (W(()), ()) } |
| 31 | + | - ^^ the trait `B` is not implemented for `()` |
| 32 | + | | |
| 33 | + | required by a bound introduced by this call |
| 34 | + | |
| 35 | +help: this trait has no implementations, consider adding one |
| 36 | + --> $DIR/diagnostic-hir-wf-check.rs:10:1 |
| 37 | + | |
| 38 | +LL | trait B {} |
| 39 | + | ^^^^^^^ |
| 40 | +note: required by a bound in `W` |
| 41 | + --> $DIR/diagnostic-hir-wf-check.rs:11:13 |
| 42 | + | |
| 43 | +LL | struct W<T: B>(T); |
| 44 | + | ^ required by this bound in `W` |
| 45 | + |
| 46 | +error[E0277]: the trait bound `(): B` is not satisfied |
| 47 | + --> $DIR/diagnostic-hir-wf-check.rs:13:40 |
| 48 | + | |
| 49 | +LL | fn b() -> (W<()>, impl for<C> A<C>) { (W(()), ()) } |
| 50 | + | ^^^^^ the trait `B` is not implemented for `()` |
| 51 | + | |
| 52 | +help: this trait has no implementations, consider adding one |
| 53 | + --> $DIR/diagnostic-hir-wf-check.rs:10:1 |
| 54 | + | |
| 55 | +LL | trait B {} |
| 56 | + | ^^^^^^^ |
| 57 | +note: required by a bound in `W` |
| 58 | + --> $DIR/diagnostic-hir-wf-check.rs:11:13 |
| 59 | + | |
| 60 | +LL | struct W<T: B>(T); |
| 61 | + | ^ required by this bound in `W` |
| 62 | + |
| 63 | +error: aborting due to 3 previous errors; 1 warning emitted |
| 64 | + |
| 65 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments