From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../item-free-static-no-body-semantic-fail.stderr | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/ui/parser/item-free-static-no-body-semantic-fail.stderr (limited to 'tests/ui/parser/item-free-static-no-body-semantic-fail.stderr') diff --git a/tests/ui/parser/item-free-static-no-body-semantic-fail.stderr b/tests/ui/parser/item-free-static-no-body-semantic-fail.stderr new file mode 100644 index 000000000..1b61e4305 --- /dev/null +++ b/tests/ui/parser/item-free-static-no-body-semantic-fail.stderr @@ -0,0 +1,46 @@ +error: free static item without body + --> $DIR/item-free-static-no-body-semantic-fail.rs:5:1 + | +LL | static A: u8; + | ^^^^^^^^^^^^- + | | + | help: provide a definition for the static: `= ;` + +error: free static item without body + --> $DIR/item-free-static-no-body-semantic-fail.rs:6:1 + | +LL | static B; + | ^^^^^^^^- + | | + | help: provide a definition for the static: `= ;` + +error: free static item without body + --> $DIR/item-free-static-no-body-semantic-fail.rs:9:1 + | +LL | static mut C: u8; + | ^^^^^^^^^^^^^^^^- + | | + | help: provide a definition for the static: `= ;` + +error: free static item without body + --> $DIR/item-free-static-no-body-semantic-fail.rs:10:1 + | +LL | static mut D; + | ^^^^^^^^^^^^- + | | + | help: provide a definition for the static: `= ;` + +error: missing type for `static` item + --> $DIR/item-free-static-no-body-semantic-fail.rs:6:9 + | +LL | static B; + | ^ help: provide a type for the item: `: ` + +error: missing type for `static mut` item + --> $DIR/item-free-static-no-body-semantic-fail.rs:10:13 + | +LL | static mut D; + | ^ help: provide a type for the item: `: ` + +error: aborting due to 6 previous errors + -- cgit v1.2.3