mirror of https://github.com/rust-lang/rust.git
give const-err4 a more descriptive name
This commit is contained in:
parent
d73bd3fb3b
commit
db860566bc
|
@ -1,4 +1,3 @@
|
||||||
// stderr-per-bitwidth
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
union Foo {
|
union Foo {
|
||||||
a: isize,
|
a: isize,
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0080]: evaluation of constant value failed
|
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],
|
LL | Boo = [unsafe { Foo { b: () }.a }; 4][3],
|
||||||
| ^^^^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
|
| ^^^^^^^^^^^^^^^ 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…
Reference in New Issue