1 // only-wasm32 2 3 #[link_section = "test"] 4 pub static A: &[u8] = &[1]; //~ ERROR: no extra levels of indirection 5 6 #[link_section = "test"] 7 pub static B: [u8; 3] = [1, 2, 3]; 8 9 #[link_section = "test"] 10 pub static C: usize = 3; 11 12 #[link_section = "test"] 13 pub static D: &usize = &C; //~ ERROR: no extra levels of indirection 14 main()15fn main() {} 16