blob: b667449add680e83fa000b3da415f9f0df691b9e [file] [log] [blame]
Ralf Junga2e61ae2022-06-29 21:31:27 -04001error: Undefined Behavior: constructing invalid value: encountered 0x02, but expected a boolean
Oli Scherer9f9f1982024-09-07 16:40:08 +02002 --> tests/fail/validity/invalid_bool.rs:LL:CC
Oli Schererf1756c32022-03-17 13:49:10 +00003 |
4LL | let _b = unsafe { std::mem::transmute::<u8, bool>(2) };
Ralf Jungbb53df12025-06-07 11:54:55 +02005 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Undefined Behavior occurred here
Oli Schererf1756c32022-03-17 13:49:10 +00006 |
7 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
Oli Schererf1756c32022-03-17 13:49:10 +00009
10note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
11
Nilstrieb377da2f2023-11-21 17:10:10 +000012error: aborting due to 1 previous error
Oli Schererf1756c32022-03-17 13:49:10 +000013