|
| 1 | +error[E0277]: the trait bound `for<'a> (): Unimplemented<'a>` is not satisfied |
| 2 | + --> $DIR/impossible_preds_repeat_expr_hack.rs:34:43 |
| 3 | + | |
| 4 | +LL | let _a: Foo<1> = Foo::<{ <u8 as Trait<()>>::ASSOC }>; |
| 5 | + | ^^ the trait `for<'a> Unimplemented<'a>` is not implemented for `()` |
| 6 | + | |
| 7 | +help: this trait has no implementations, consider adding one |
| 8 | + --> $DIR/impossible_preds_repeat_expr_hack.rs:5:1 |
| 9 | + | |
| 10 | +LL | pub trait Unimplemented<'a> {} |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | +note: required by a bound in `Trait::ASSOC` |
| 13 | + --> $DIR/impossible_preds_repeat_expr_hack.rs:9:16 |
| 14 | + | |
| 15 | +LL | for<'a> T: Unimplemented<'a>, |
| 16 | + | ^^^^^^^^^^^^^^^^^ required by this bound in `Trait::ASSOC` |
| 17 | +LL | { |
| 18 | +LL | const ASSOC: usize; |
| 19 | + | ----- required by a bound in this associated constant |
| 20 | + |
| 21 | +error[E0277]: the trait bound `for<'a> (): Unimplemented<'a>` is not satisfied |
| 22 | + --> $DIR/impossible_preds_repeat_expr_hack.rs:34:31 |
| 23 | + | |
| 24 | +LL | let _a: Foo<1> = Foo::<{ <u8 as Trait<()>>::ASSOC }>; |
| 25 | + | ^^ the trait `for<'a> Unimplemented<'a>` is not implemented for `()` |
| 26 | + | |
| 27 | +help: this trait has no implementations, consider adding one |
| 28 | + --> $DIR/impossible_preds_repeat_expr_hack.rs:5:1 |
| 29 | + | |
| 30 | +LL | pub trait Unimplemented<'a> {} |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 32 | +note: required for `u8` to implement `Trait<()>` |
| 33 | + --> $DIR/impossible_preds_repeat_expr_hack.rs:14:9 |
| 34 | + | |
| 35 | +LL | impl<T> Trait<T> for u8 |
| 36 | + | ^^^^^^^^ ^^ |
| 37 | +LL | where |
| 38 | +LL | for<'a> T: Unimplemented<'a>, |
| 39 | + | ----------------- unsatisfied trait bound introduced here |
| 40 | + |
| 41 | +error: aborting due to 2 previous errors |
| 42 | + |
| 43 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments