Skip to content

Commit 4f46229

Browse files
committed
Update some target-specific tests
1 parent 1645dce commit 4f46229

File tree

3 files changed

+63
-63
lines changed

3 files changed

+63
-63
lines changed

tests/ui/const-generics/min_const_generics/invalid-patterns.32bit.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0080]: evaluation of constant value failed
2-
--> $DIR/invalid-patterns.rs:38:32
2+
--> $DIR/invalid-patterns.rs:40:32
33
|
44
LL | get_flag::<false, { unsafe { char_raw.character } }>();
55
| ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
66

77
error[E0080]: it is undefined behavior to use this value
8-
--> $DIR/invalid-patterns.rs:41:14
8+
--> $DIR/invalid-patterns.rs:43:14
99
|
1010
LL | 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

1818
error[E0080]: it is undefined behavior to use this value
19-
--> $DIR/invalid-patterns.rs:43:14
19+
--> $DIR/invalid-patterns.rs:45:14
2020
|
2121
LL | 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

2929
error[E0080]: evaluation of constant value failed
30-
--> $DIR/invalid-patterns.rs:43:58
30+
--> $DIR/invalid-patterns.rs:45:58
3131
|
3232
LL | get_flag::<{ unsafe { bool_raw.boolean } }, { unsafe { char_raw.character } }>();
3333
| ^^^^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
3434

3535
error[E0308]: mismatched types
36-
--> $DIR/invalid-patterns.rs:29:21
36+
--> $DIR/invalid-patterns.rs:31:21
3737
|
3838
LL | get_flag::<false, 0xFF>();
3939
| ^^^^ expected `char`, found `u8`
4040

4141
error[E0308]: mismatched types
42-
--> $DIR/invalid-patterns.rs:31:14
42+
--> $DIR/invalid-patterns.rs:33:14
4343
|
4444
LL | get_flag::<7, 'c'>();
4545
| ^ expected `bool`, found integer
4646

4747
error[E0308]: mismatched types
48-
--> $DIR/invalid-patterns.rs:33:14
48+
--> $DIR/invalid-patterns.rs:35:14
4949
|
5050
LL | get_flag::<42, 0x5ad>();
5151
| ^^ expected `bool`, found integer
5252

5353
error[E0308]: mismatched types
54-
--> $DIR/invalid-patterns.rs:33:18
54+
--> $DIR/invalid-patterns.rs:35:18
5555
|
5656
LL | get_flag::<42, 0x5ad>();
5757
| ^^^^^ expected `char`, found `u8`

0 commit comments

Comments
 (0)