From 1376c5a617be5c25655d0d7cb63e3beaa5a6e026 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:20:39 +0200 Subject: Merging upstream version 1.70.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/wasm/wasm-custom-section-relocations.stderr | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/ui/wasm/wasm-custom-section-relocations.stderr (limited to 'tests/ui/wasm/wasm-custom-section-relocations.stderr') diff --git a/tests/ui/wasm/wasm-custom-section-relocations.stderr b/tests/ui/wasm/wasm-custom-section-relocations.stderr new file mode 100644 index 000000000..a37edc51d --- /dev/null +++ b/tests/ui/wasm/wasm-custom-section-relocations.stderr @@ -0,0 +1,14 @@ +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 + --> $DIR/wasm-custom-section-relocations.rs:4:1 + | +LL | pub static A: &[u8] = &[1]; + | ^^^^^^^^^^^^^^^^^^^ + +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 + --> $DIR/wasm-custom-section-relocations.rs:13:1 + | +LL | pub static D: &usize = &C; + | ^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 2 previous errors + -- cgit v1.2.3