]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/const-no-type.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / suggestions / const-no-type.stderr
1 error: missing type for `const` item
2 --> $DIR/const-no-type.rs:33:7
3 |
4 LL | const C = 42;
5 | ^ help: provide a type for the item: `C: i32`
6
7 error: missing type for `const` item
8 --> $DIR/const-no-type.rs:38:7
9 |
10 LL | const D = &&42;
11 | ^ help: provide a type for the item: `D: &&i32`
12
13 error: missing type for `static` item
14 --> $DIR/const-no-type.rs:43:8
15 |
16 LL | static S = Vec::<String>::new();
17 | ^ help: provide a type for the item: `S: Vec<String>`
18
19 error: missing type for `static mut` item
20 --> $DIR/const-no-type.rs:48:12
21 |
22 LL | static mut SM = "abc";
23 | ^^ help: provide a type for the item: `SM: &str`
24
25 error: missing type for `const` item
26 --> $DIR/const-no-type.rs:14:7
27 |
28 LL | const C2 = 42;
29 | ^^ help: provide a type for the item: `C2: <type>`
30
31 error: missing type for `static` item
32 --> $DIR/const-no-type.rs:20:8
33 |
34 LL | static S2 = "abc";
35 | ^^ help: provide a type for the item: `S2: <type>`
36
37 error: missing type for `static mut` item
38 --> $DIR/const-no-type.rs:26:12
39 |
40 LL | static mut SM2 = "abc";
41 | ^^^ help: provide a type for the item: `SM2: <type>`
42
43 error: aborting due to 7 previous errors
44