]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-eval/union-const-eval-field.stderr
Auto merge of #52712 - oli-obk:const_eval_cleanups, r=RalfJung
[rust.git] / src / test / ui / const-eval / union-const-eval-field.stderr
1 error: this constant cannot be used
2   --> $DIR/union-const-eval-field.rs:37:5
3    |
4 LL |     const FIELD3: Field3 = unsafe { UNION.field3 }; //~ ERROR cannot be used
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempted to read undefined bytes
6    |
7    = note: #[deny(const_err)] on by default
8
9 error: aborting due to previous error
10