]> git.lizzy.rs Git - rust.git/blob - tests/ui/cast_alignment.stderr
Merge pull request #1 from humanenginuity/fix-strictly-aligned-types-cast-messages
[rust.git] / tests / ui / cast_alignment.stderr
1 error: casting from `*const u8` to a more-strictly-aligned pointer (`*const u16`)
2  --> $DIR/cast_alignment.rs:9:5
3   |
4 9 |     (&1u8 as *const u8) as *const u16;
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: `-D cast-ptr-alignment` implied by `-D warnings`
8
9 error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut u16`)
10   --> $DIR/cast_alignment.rs:10:5
11    |
12 10 |     (&mut 1u8 as *mut u8) as *mut u16;
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16