]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/const-no-type.stderr
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / suggestions / const-no-type.stderr
1 error: missing type for `const` item
2   --> $DIR/const-no-type.rs:33:8
3    |
4 LL | const C = 42;
5    |        ^ help: provide a type for the constant: `: i32`
6
7 error: missing type for `const` item
8   --> $DIR/const-no-type.rs:38:8
9    |
10 LL | const D = &&42;
11    |        ^ help: provide a type for the constant: `: &&i32`
12
13 error: missing type for `static` item
14   --> $DIR/const-no-type.rs:43:9
15    |
16 LL | static S = Vec::<String>::new();
17    |         ^ help: provide a type for the static variable: `: Vec<String>`
18
19 error: missing type for `static mut` item
20   --> $DIR/const-no-type.rs:48:14
21    |
22 LL | static mut SM = "abc";
23    |              ^ help: provide a type for the static variable: `: &str`
24
25 error: missing type for `const` item
26   --> $DIR/const-no-type.rs:14:9
27    |
28 LL | const C2 = 42;
29    |         ^ help: provide a type for the item: `: <type>`
30
31 error: missing type for `static` item
32   --> $DIR/const-no-type.rs:20:10
33    |
34 LL | static S2 = "abc";
35    |          ^ help: provide a type for the item: `: <type>`
36
37 error: missing type for `static mut` item
38   --> $DIR/const-no-type.rs:26:15
39    |
40 LL | static mut SM2 = "abc";
41    |               ^ help: provide a type for the item: `: <type>`
42
43 error: aborting due to 7 previous errors
44