Rollup merge of #119852 - RalfJung:const-err4, r=compiler-errors
give const-err4 a more descriptive name Also, doesn't look like this still needs to be per-bitwidth r? ``@oli-obk``
This commit is contained in:
commit
ca17ce4558
3 changed files with 1 additions and 11 deletions
|
@ -1,4 +1,3 @@
|
|||
// stderr-per-bitwidth
|
||||
#[derive(Copy, Clone)]
|
||||
union Foo {
|
||||
a: isize,
|
|
@ -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
|
|
@ -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`.
|
Loading…
Add table
Reference in a new issue