fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
421 B12 linesraw
1error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2  --> $DIR/E0512.rs:4:23
3   |
4LL |     unsafe { takes_u8(::std::mem::transmute(0u16)); }
5   |                       ^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: source type: `u16` (16 bits)
8   = note: target type: `u8` (8 bits)
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0512`.