]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/unaligned_references_external_macro.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / lint / unaligned_references_external_macro.stderr
CommitLineData
6a06907d
XL
1error: reference to packed field is unaligned
2 --> $DIR/unaligned_references_external_macro.rs:7:1
3 |
4LL | / unaligned_references_external_crate::mac! {
5LL | | #[repr(packed)]
6LL | | pub struct X {
7LL | | pub field: u16
8LL | | }
9LL | | }
10 | |_^
11 |
12note: the lint level is defined here
13 --> $DIR/unaligned_references_external_macro.rs:7:1
14 |
15LL | / unaligned_references_external_crate::mac! {
16LL | | #[repr(packed)]
17LL | | pub struct X {
18LL | | pub field: u16
19LL | | }
20LL | | }
21 | |_^
22 = note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
23 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
24
25error: aborting due to previous error
26