11error[E0080]: evaluation of constant value failed
2- --> $DIR/invalid-patterns.rs:38 :32
2+ --> $DIR/invalid-patterns.rs:40 :32
33 |
44LL | get_flag::<false, { unsafe { char_raw.character } }>();
55 | ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
66
77error[E0080]: it is undefined behavior to use this value
8- --> $DIR/invalid-patterns.rs:41 :14
8+ --> $DIR/invalid-patterns.rs:43 :14
99 |
1010LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered 0x42, but expected a boolean
@@ -16,7 +16,7 @@ LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
1616 }
1717
1818error[E0080]: it is undefined behavior to use this value
19- --> $DIR/invalid-patterns.rs:43 :14
19+ --> $DIR/invalid-patterns.rs:45 :14
2020 |
2121LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
2222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered 0x42, but expected a boolean
@@ -27,31 +27,31 @@ LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character
2727 }
2828
2929error[E0080]: evaluation of constant value failed
30- --> $DIR/invalid-patterns.rs:43 :58
30+ --> $DIR/invalid-patterns.rs:45 :58
3131 |
3232LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
3333 | ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
3434
3535error[E0308]: mismatched types
36- --> $DIR/invalid-patterns.rs:29 :21
36+ --> $DIR/invalid-patterns.rs:31 :21
3737 |
3838LL | get_flag::<false, 0xFF>();
3939 | ^^^^ expected `char`, found `u8`
4040
4141error[E0308]: mismatched types
42- --> $DIR/invalid-patterns.rs:31 :14
42+ --> $DIR/invalid-patterns.rs:33 :14
4343 |
4444LL | get_flag::<7, 'c'>();
4545 | ^ expected `bool`, found integer
4646
4747error[E0308]: mismatched types
48- --> $DIR/invalid-patterns.rs:33 :14
48+ --> $DIR/invalid-patterns.rs:35 :14
4949 |
5050LL | get_flag::<42, 0x5ad>();
5151 | ^^ expected `bool`, found integer
5252
5353error[E0308]: mismatched types
54- --> $DIR/invalid-patterns.rs:33 :18
54+ --> $DIR/invalid-patterns.rs:35 :18
5555 |
5656LL | get_flag::<42, 0x5ad>();
5757 | ^^^^^ expected `char`, found `u8`
0 commit comments