diff options
Diffstat (limited to 'tests/ui/parser/item-free-const-no-body-semantic-fail.stderr')
-rw-r--r-- | tests/ui/parser/item-free-const-no-body-semantic-fail.stderr | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/parser/item-free-const-no-body-semantic-fail.stderr b/tests/ui/parser/item-free-const-no-body-semantic-fail.stderr new file mode 100644 index 000000000..5365b0a1f --- /dev/null +++ b/tests/ui/parser/item-free-const-no-body-semantic-fail.stderr @@ -0,0 +1,24 @@ +error: free constant item without body + --> $DIR/item-free-const-no-body-semantic-fail.rs:5:1 + | +LL | const A: u8; + | ^^^^^^^^^^^- + | | + | help: provide a definition for the constant: `= <expr>;` + +error: free constant item without body + --> $DIR/item-free-const-no-body-semantic-fail.rs:6:1 + | +LL | const B; + | ^^^^^^^- + | | + | help: provide a definition for the constant: `= <expr>;` + +error: missing type for `const` item + --> $DIR/item-free-const-no-body-semantic-fail.rs:6:8 + | +LL | const B; + | ^ help: provide a type for the item: `: <type>` + +error: aborting due to 3 previous errors + |