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