summary refs log tree commit diff
path: root/src/test/ui/const-eval/union-const-eval-field.stderr
blob: 94896d6c22577b4b7109f997caf440414926c8e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0080]: this constant likely exhibits undefined behavior
  --> $DIR/union-const-eval-field.rs:37:5
   |
LL |     const FIELD3: Field3 = unsafe { UNION.field3 }; //~ ERROR exhibits undefined behavior
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered undefined bytes
   |
   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rust compiler repository if you believe it should not be considered undefined behavior

error: aborting due to previous error

For more information about this error, try `rustc --explain E0080`.