fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1019 B30 linesraw
1error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2  --> $DIR/transmute-different-sizes.rs:11:17
3   |
4LL |     let _: i8 = transmute(16i16);
5   |                 ^^^^^^^^^
6   |
7   = note: source type: `i16` (N bits)
8   = note: target type: `i8` (N bits)
9
10error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11  --> $DIR/transmute-different-sizes.rs:16:17
12   |
13LL |     let _: i8 = transmute(x);
14   |                 ^^^^^^^^^
15   |
16   = note: source type: `&T` (N bits)
17   = note: target type: `i8` (N bits)
18
19error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20  --> $DIR/transmute-different-sizes.rs:27:5
21   |
22LL |     transmute(x)
23   |     ^^^^^^^^^
24   |
25   = note: source type: `u16` (N bits)
26   = note: target type: `<T as Specializable>::Output` (this type does not have a fixed size)
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0512`.