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