|
1 | | -error[E0271]: type mismatch resolving `const { 99 + 1 } == 100` |
2 | | - --> $DIR/type-const-ice-issue-151631.rs:36:11 |
| 1 | +error[E0277]: the trait bound `(): SuperTrait` is not satisfied |
| 2 | + --> $DIR/type-const-ice-issue-151631.rs:10:16 |
3 | 3 | | |
4 | | -LL | take1(()); |
5 | | - | ----- ^^ types differ |
6 | | - | | |
7 | | - | required by a bound introduced by this call |
| 4 | +LL | impl Trait for () { |
| 5 | + | ^^ the trait `SuperTrait` is not implemented for `()` |
8 | 6 | | |
9 | | -note: required by a bound in `take1` |
10 | | - --> $DIR/type-const-ice-issue-151631.rs:26:24 |
| 7 | +help: this trait has no implementations, consider adding one |
| 8 | + --> $DIR/type-const-ice-issue-151631.rs:6:1 |
11 | 9 | | |
12 | | -LL | fn take1(_: impl Owner<K<99> = 100>) {} |
13 | | - | ^^^^^^^^^^^ required by this bound in `take1` |
| 10 | +LL | trait SuperTrait {} |
| 11 | + | ^^^^^^^^^^^^^^^^ |
| 12 | +note: required by a bound in `Trait` |
| 13 | + --> $DIR/type-const-ice-issue-151631.rs:7:14 |
| 14 | + | |
| 15 | +LL | trait Trait: SuperTrait { |
| 16 | + | ^^^^^^^^^^ required by this bound in `Trait` |
| 17 | + |
| 18 | +error[E0277]: the trait bound `(): SuperTrait` is not satisfied |
| 19 | + --> $DIR/type-const-ice-issue-151631.rs:17:5 |
| 20 | + | |
| 21 | +LL | check(()); |
| 22 | + | ^^^^^^^^^ the trait `SuperTrait` is not implemented for `()` |
| 23 | + | |
| 24 | +help: this trait has no implementations, consider adding one |
| 25 | + --> $DIR/type-const-ice-issue-151631.rs:6:1 |
| 26 | + | |
| 27 | +LL | trait SuperTrait {} |
| 28 | + | ^^^^^^^^^^^^^^^^ |
| 29 | +note: required by a bound in `Trait` |
| 30 | + --> $DIR/type-const-ice-issue-151631.rs:7:14 |
| 31 | + | |
| 32 | +LL | trait Trait: SuperTrait { |
| 33 | + | ^^^^^^^^^^ required by this bound in `Trait` |
14 | 34 |
|
15 | | -error: aborting due to 1 previous error |
| 35 | +error: aborting due to 2 previous errors |
16 | 36 |
|
17 | | -For more information about this error, try `rustc --explain E0271`. |
| 37 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments