]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/item-free-const-no-body-semantic-fail.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / item-free-const-no-body-semantic-fail.stderr
1 error: free constant item without body
2   --> $DIR/item-free-const-no-body-semantic-fail.rs:5:1
3    |
4 LL | const A: u8;
5    | ^^^^^^^^^^^-
6    |            |
7    |            help: provide a definition for the constant: `= <expr>;`
8
9 error: free constant item without body
10   --> $DIR/item-free-const-no-body-semantic-fail.rs:6:1
11    |
12 LL | const B;
13    | ^^^^^^^-
14    |        |
15    |        help: provide a definition for the constant: `= <expr>;`
16
17 error: missing type for `const` item
18   --> $DIR/item-free-const-no-body-semantic-fail.rs:6:7
19    |
20 LL | const B;
21    |       ^ help: provide a type for the item: `B: [type error]`
22
23 error: aborting due to 3 previous errors
24