]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-static-no-body-semantic-fail.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / item-free-static-no-body-semantic-fail.stderr
1 error: free static item without body
2   --> $DIR/item-free-static-no-body-semantic-fail.rs:5:1
3    |
4 LL | static A: u8;
5    | ^^^^^^^^^^^^-
6    |             |
7    |             help: provide a definition for the static: `= <expr>;`
8
9 error: free static item without body
10   --> $DIR/item-free-static-no-body-semantic-fail.rs:6:1
11    |
12 LL | static B;
13    | ^^^^^^^^-
14    |         |
15    |         help: provide a definition for the static: `= <expr>;`
16
17 error: free static item without body
18   --> $DIR/item-free-static-no-body-semantic-fail.rs:9:1
19    |
20 LL | static mut C: u8;
21    | ^^^^^^^^^^^^^^^^-
22    |                 |
23    |                 help: provide a definition for the static: `= <expr>;`
24
25 error: free static item without body
26   --> $DIR/item-free-static-no-body-semantic-fail.rs:10:1
27    |
28 LL | static mut D;
29    | ^^^^^^^^^^^^-
30    |             |
31    |             help: provide a definition for the static: `= <expr>;`
32
33 error: missing type for `static` item
34   --> $DIR/item-free-static-no-body-semantic-fail.rs:6:9
35    |
36 LL | static B;
37    |         ^ help: provide a type for the item: `: <type>`
38
39 error: missing type for `static mut` item
40   --> $DIR/item-free-static-no-body-semantic-fail.rs:10:13
41    |
42 LL | static mut D;
43    |             ^ help: provide a type for the item: `: <type>`
44
45 error: aborting due to 6 previous errors
46