]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wasm-custom-section-relocations.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / wasm-custom-section-relocations.stderr
1 error[E0601]: `main` function not found in crate `wasm_custom_section_relocations`
2    |
3    = note: consider adding a `main` function to `$DIR/wasm-custom-section-relocations.rs`
4
5 error: statics with a custom `#[link_section]` must be a simple list of bytes on the wasm target with no extra levels of indirection such as references
6   --> $DIR/wasm-custom-section-relocations.rs:14:1
7    |
8 LL | pub static A: &[u8] = &[1]; //~ ERROR: no extra levels of indirection
9    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
10
11 error: statics with a custom `#[link_section]` must be a simple list of bytes on the wasm target with no extra levels of indirection such as references
12   --> $DIR/wasm-custom-section-relocations.rs:23:1
13    |
14 LL | pub static D: &usize = &C; //~ ERROR: no extra levels of indirection
15    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16
17 error: aborting due to 3 previous errors
18
19 For more information about this error, try `rustc --explain E0601`.