give const-err4 a more descriptive name

This commit is contained in:
Ralf Jung 2024-01-11 14:57:12 +01:00
parent d73bd3fb3b
commit db860566bc
3 changed files with 1 additions and 11 deletions

View File

@ -1,4 +1,3 @@
// stderr-per-bitwidth
#[derive(Copy, Clone)]
union Foo {
a: isize,

View File

@ -1,5 +1,5 @@
error[E0080]: evaluation of constant value failed
--> $DIR/const-err4.rs:9:21
--> $DIR/const-err-enum-discriminant.rs:8:21
|
LL | Boo = [unsafe { Foo { b: () }.a }; 4][3],
| ^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory

View File

@ -1,9 +0,0 @@
error[E0080]: evaluation of constant value failed
--> $DIR/const-err4.rs:9:21
|
LL | Boo = [unsafe { Foo { b: () }.a }; 4][3],
| ^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.