6 data2: [&'static u32; 2],
10 // kill this test when that turns to a hard error
11 #[allow(unaligned_references)]
13 let good = Good { data: &0, data2: [&0, &0], aligned: [0; 32] };
15 let _ = &good.data; // ok
16 let _ = &good.data2[0]; // ok
19 let _ = &good.data2[0];
20 let _ = &*good.data; // ok, behind a pointer
21 let _ = &good.aligned; // ok, has align 1
22 let _ = &good.aligned[2]; // ok, has align 1