1 error: reference to packed field is unaligned
4 5 | / pin_project! { //~ ERROR reference to packed field is unaligned
5 6 | | #[repr(packed, C)]
13 note: the lint level is defined here
14 --> $DIR/packed.rs:5:1
16 5 | / pin_project! { //~ ERROR reference to packed field is unaligned
17 6 | | #[repr(packed, C)]
24 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
25 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
26 = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
27 = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)
29 error: reference to packed field is unaligned
30 --> $DIR/packed.rs:13:1
32 13 | / pin_project! { //~ ERROR reference to packed field is unaligned
33 14 | | #[repr(packed(2))]
34 15 | | struct PackedN {
41 note: the lint level is defined here
42 --> $DIR/packed.rs:13:1
44 13 | / pin_project! { //~ ERROR reference to packed field is unaligned
45 14 | | #[repr(packed(2))]
46 15 | | struct PackedN {
52 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
53 = note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
54 = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
55 = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)