]> git.lizzy.rs Git - rust.git/blob - tests/ui/wasm-custom-section-relocations.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / wasm-custom-section-relocations.rs
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
15 fn main() {}