]> git.lizzy.rs Git - rust.git/blob - src/test/ui/packed-struct/packed-struct-transmute.stderr
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / packed-struct / packed-struct-transmute.stderr
1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2   --> $DIR/packed-struct-transmute.rs:26:24
3    |
4 LL |         let oof: Oof = mem::transmute(foo);
5    |                        ^^^^^^^^^^^^^^
6    |
7    = note: source type: `Foo` (N bits)
8    = note: target type: `Oof` (N bits)
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0512`.