blob: f40f5aded8ef13e0e5a76e03f47688aa51e3bfe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
error[E0282]: type annotations needed
--> $DIR/issue-89574.rs:2:25
|
LL | const EMPTY_ARRAY = [];
| ^^ cannot infer type
error: missing type for `const` item
--> $DIR/issue-89574.rs:2:22
|
LL | const EMPTY_ARRAY = [];
| ^
|
help: provide a type for the item
|
LL | const EMPTY_ARRAY: <type> = [];
| ++++++++
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0282`.
|