]> git.lizzy.rs Git - rust.git/blob - tests/ui/transmute/transmute-impl.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / transmute / transmute-impl.stderr
1 error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2   --> $DIR/transmute-impl.rs:21:18
3    |
4 LL |         unsafe { transmute(x) }
5    |                  ^^^^^^^^^
6    |
7    = note: source type: `&T` (pointer to `T`)
8    = note: target type: `&isize` (N bits)
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0512`.