]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0512.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0512.stderr
1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2   --> $DIR/E0512.rs:4:23
3    |
4 LL |     unsafe { takes_u8(::std::mem::transmute(0u16)); }
5    |                       ^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: source type: `u16` (16 bits)
8    = note: target type: `u8` (8 bits)
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0512`.