fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
619 B11 linesraw
1error[E0080]: it is undefined behavior to use this value
2  --> $DIR/transmute-const.rs:5:1
3   |
4LL | static FOO: bool = unsafe { mem::transmute(3u8) };
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered 3, but expected something less or equal to 1
6   |
7   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0080`.