2020-02-14 13:21:02 +00:00
|
|
|
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>;`
|
|
|
|
|
2021-10-06 00:52:45 +00:00
|
|
|
error: missing type for `const` item
|
2022-08-05 11:41:42 +00:00
|
|
|
--> $DIR/item-free-const-no-body-semantic-fail.rs:6:8
|
2021-10-06 00:52:45 +00:00
|
|
|
|
|
|
|
|
LL | const B;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: provide a type for the item
|
|
|
|
|
|
|
|
|
LL | const B: <type>;
|
|
|
|
| ++++++++
|
2021-10-06 00:52:45 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2020-02-14 13:21:02 +00:00
|
|
|
|