]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/union-const-eval-field.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / union-const-eval-field.stderr
CommitLineData
f2b60f7d
FG
1error[E0080]: evaluation of constant value failed
2 --> $DIR/union-const-eval-field.rs:28:37
b7449926 3 |
a1dfa0c6 4LL | const FIELD3: Field3 = unsafe { UNION.field3 };
f2b60f7d 5 | ^^^^^^^^^^^^ using uninitialized data, but this operation requires initialized memory
b7449926 6
5e7ed085 7error[E0080]: erroneous constant used
f2b60f7d 8 --> $DIR/union-const-eval-field.rs:31:5
5e7ed085
FG
9 |
10LL | FIELD3
11 | ^^^^^^ referenced constant has errors
12
13error: aborting due to 2 previous errors
b7449926 14
a1dfa0c6 15For more information about this error, try `rustc --explain E0080`.