blob: 4450aa66c13222b4cb8a2f66d1680c80e55daaa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
error: associated `static` items are not allowed
--> $DIR/do-not-suggest-placeholder-to-const-static-without-type.rs:3:5
|
LL | static B;
| ^^^^^^^^^
error: missing type for `const` item
--> $DIR/do-not-suggest-placeholder-to-const-static-without-type.rs:2:12
|
LL | const A;
| ^
|
help: provide a type for the item
|
LL | const A: <type>;
| ++++++++
error: missing type for `static` item
--> $DIR/do-not-suggest-placeholder-to-const-static-without-type.rs:3:13
|
LL | static B;
| ^
|
help: provide a type for the item
|
LL | static B: <type>;
| ++++++++
error: aborting due to 3 previous errors
|