2021-02-27 06:25:06 -06:00
|
|
|
// 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
|
2021-02-25 12:38:53 -06:00
|
|
|
//~^ previously accepted
|
2021-02-27 06:25:06 -06:00
|
|
|
#[repr(packed)]
|
|
|
|
pub struct X {
|
|
|
|
pub field: u16
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|