blob: 998ff79d3afe30c3d0cf158affb96759ca65308f [file]
error: Undefined Behavior: constructing invalid value at .<enum-tag>: encountered $HEX, but expected a valid enum tag
--> tests/fail/validity/transmute_through_ptr.rs:LL:CC
|
LL | let y = x; // reading this ought to be enough to trigger validation
| ^ Undefined Behavior occurred here
|
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
error: aborting due to 1 previous error