]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
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 | ||
ba9703b0 XL |
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 | ||
e74abb32 | 13 | error: missing type for `static` item |
ba9703b0 | 14 | --> $DIR/const-no-type.rs:43:8 |
e74abb32 XL |
15 | | |
16 | LL | static S = Vec::<String>::new(); | |
1b1a35ee | 17 | | ^ help: provide a type for the item: `S: Vec<String>` |
e74abb32 XL |
18 | |
19 | error: missing type for `static mut` item | |
ba9703b0 | 20 | --> $DIR/const-no-type.rs:48:12 |
e74abb32 XL |
21 | | |
22 | LL | static mut SM = "abc"; | |
ba9703b0 | 23 | | ^^ help: provide a type for the item: `SM: &str` |
e74abb32 XL |
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 | ||
ba9703b0 | 43 | error: aborting due to 7 previous errors |
e74abb32 | 44 |