about summary refs log tree commit diff
path: root/tests/ui/lint/unaligned_references_external_macro.rs
blob: 3a97e2112a14439d6e56d49c5caa1f6635319087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ aux-build:unaligned_references_external_crate.rs

extern crate unaligned_references_external_crate;

unaligned_references_external_crate::mac! { //~ERROR reference to packed field is unaligned
    #[repr(packed)]
    pub struct X {
        pub field: u16
    }
}

fn main() {}