]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/const-no-type.stderr
Update const_forget.rs
[rust.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 `static` item
8   --> $DIR/const-no-type.rs:38:8
9    |
10 LL | static S = Vec::<String>::new();
11    |        ^ help: provide a type for the item: `S: std::vec::Vec<std::string::String>`
12
13 error: missing type for `static mut` item
14   --> $DIR/const-no-type.rs:43:12
15    |
16 LL | static mut SM = "abc";
17    |            ^^ help: provide a type for the item: `SM: &'static str`
18
19 error: missing type for `const` item
20   --> $DIR/const-no-type.rs:14:7
21    |
22 LL | const C2 = 42;
23    |       ^^ help: provide a type for the item: `C2: <type>`
24
25 error: missing type for `static` item
26   --> $DIR/const-no-type.rs:20:8
27    |
28 LL | static S2 = "abc";
29    |        ^^ help: provide a type for the item: `S2: <type>`
30
31 error: missing type for `static mut` item
32   --> $DIR/const-no-type.rs:26:12
33    |
34 LL | static mut SM2 = "abc";
35    |            ^^^ help: provide a type for the item: `SM2: <type>`
36
37 error: aborting due to 6 previous errors
38