1 #![deny(unaligned_references)]
3 // check that derive on a packed struct with non-Copy fields
4 // correctly. This can't be made to work perfectly because
5 // we can't just use the field from the struct as it might
8 #[derive(Copy, Clone, PartialEq, Eq)]
9 //~^ ERROR `#[derive]` can't be used
11 //~^^^ ERROR `#[derive]` can't be used
14 pub struct Foo<T>(T, T, T);
16 #[derive(PartialEq, Eq)]
17 //~^ ERROR `#[derive]` can't be used
20 pub struct Bar(u32, u32, u32);
26 //~^ ERROR `#[derive]` can't be used