1 error: casting from `*const u8` to a more-strictly-aligned pointer (`*const u16`)
2 --> $DIR/cast_alignment.rs:12:5
4 LL | (&1u8 as *const u8) as *const u16;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::cast-ptr-alignment` implied by `-D warnings`
9 error: casting from `*mut u8` to a more-strictly-aligned pointer (`*mut u16`)
10 --> $DIR/cast_alignment.rs:13:5
12 LL | (&mut 1u8 as *mut u8) as *mut u16;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: aborting due to 2 previous errors