|
| 1 | +error: the constant `N` is not of type `u8` |
| 2 | + --> $DIR/adt_expr_fields_type_check.rs:24:19 |
| 3 | + | |
| 4 | +LL | accepts_1::<{ S1::<u8> { f1: N, f2: N } }>(); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `bool` |
| 6 | + |
| 7 | +error: the constant `N` is not of type `isize` |
| 8 | + --> $DIR/adt_expr_fields_type_check.rs:24:19 |
| 9 | + | |
| 10 | +LL | accepts_1::<{ S1::<u8> { f1: N, f2: N } }>(); |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `isize`, found `bool` |
| 12 | + |
| 13 | +error: the constant `N` is not of type `u8` |
| 14 | + --> $DIR/adt_expr_fields_type_check.rs:27:19 |
| 15 | + | |
| 16 | +LL | accepts_2::<{ S2::<u8>(N, N) }>(); |
| 17 | + | ^^^^^^^^^^^^^^ expected `u8`, found `bool` |
| 18 | + |
| 19 | +error: the constant `N` is not of type `isize` |
| 20 | + --> $DIR/adt_expr_fields_type_check.rs:27:19 |
| 21 | + | |
| 22 | +LL | accepts_2::<{ S2::<u8>(N, N) }>(); |
| 23 | + | ^^^^^^^^^^^^^^ expected `isize`, found `bool` |
| 24 | + |
| 25 | +error: the constant `N` is not of type `u8` |
| 26 | + --> $DIR/adt_expr_fields_type_check.rs:30:19 |
| 27 | + | |
| 28 | +LL | accepts_3::<{ En::Var1::<u8>(N, N) }>(); |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^ expected `u8`, found `bool` |
| 30 | + |
| 31 | +error: the constant `N` is not of type `i64` |
| 32 | + --> $DIR/adt_expr_fields_type_check.rs:32:19 |
| 33 | + | |
| 34 | +LL | accepts_3::<{ En::Var2::<u8> { field: N } }>(); |
| 35 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i64`, found `bool` |
| 36 | + |
| 37 | +error[E0308]: mismatched types |
| 38 | + --> $DIR/adt_expr_fields_type_check.rs:34:51 |
| 39 | + | |
| 40 | +LL | accepts_3::<{ En::Var2::<u8> { field: const { false } } }>(); |
| 41 | + | ^^^^^ expected `i64`, found `bool` |
| 42 | + |
| 43 | +error: aborting due to 7 previous errors |
| 44 | + |
| 45 | +For more information about this error, try `rustc --explain E0308`. |
0 commit comments