1
1
error[E0080]: evaluation of constant value failed
2
- --> $DIR/invalid-patterns.rs:38 :32
2
+ --> $DIR/invalid-patterns.rs:40 :32
3
3
|
4
4
LL | get_flag::<false, { unsafe { char_raw.character } }>();
5
5
| ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
6
6
7
7
error[E0080]: it is undefined behavior to use this value
8
- --> $DIR/invalid-patterns.rs:41 :14
8
+ --> $DIR/invalid-patterns.rs:43 :14
9
9
|
10
10
LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
11
11
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered 0x42, but expected a boolean
@@ -16,7 +16,7 @@ LL | get_flag::<{ unsafe { bool_raw.boolean } }, 'z'>();
16
16
}
17
17
18
18
error[E0080]: it is undefined behavior to use this value
19
- --> $DIR/invalid-patterns.rs:43 :14
19
+ --> $DIR/invalid-patterns.rs:45 :14
20
20
|
21
21
LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
22
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered 0x42, but expected a boolean
@@ -27,31 +27,31 @@ LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character
27
27
}
28
28
29
29
error[E0080]: evaluation of constant value failed
30
- --> $DIR/invalid-patterns.rs:43 :58
30
+ --> $DIR/invalid-patterns.rs:45 :58
31
31
|
32
32
LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
33
33
| ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
34
34
35
35
error[E0308]: mismatched types
36
- --> $DIR/invalid-patterns.rs:29 :21
36
+ --> $DIR/invalid-patterns.rs:31 :21
37
37
|
38
38
LL | get_flag::<false, 0xFF>();
39
39
| ^^^^ expected `char`, found `u8`
40
40
41
41
error[E0308]: mismatched types
42
- --> $DIR/invalid-patterns.rs:31 :14
42
+ --> $DIR/invalid-patterns.rs:33 :14
43
43
|
44
44
LL | get_flag::<7, 'c'>();
45
45
| ^ expected `bool`, found integer
46
46
47
47
error[E0308]: mismatched types
48
- --> $DIR/invalid-patterns.rs:33 :14
48
+ --> $DIR/invalid-patterns.rs:35 :14
49
49
|
50
50
LL | get_flag::<42, 0x5ad>();
51
51
| ^^ expected `bool`, found integer
52
52
53
53
error[E0308]: mismatched types
54
- --> $DIR/invalid-patterns.rs:33 :18
54
+ --> $DIR/invalid-patterns.rs:35 :18
55
55
|
56
56
LL | get_flag::<42, 0x5ad>();
57
57
| ^^^^^ expected `char`, found `u8`
0 commit comments