rust/tests/ui/lint/unaligned_references_external_macro.rs
2023-01-11 09:32:08 +00:00

14 lines
309 B
Rust

// 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
//~^ previously accepted
#[repr(packed)]
pub struct X {
pub field: u16
}
}
fn main() {}