2024-01-31 16:27:58 +00:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
|
--> $DIR/issue-89574.rs:2:25
|
|
|
|
|
|
|
|
|
|
|
LL | const EMPTY_ARRAY = [];
|
|
|
|
|
| ^^ cannot infer type
|
|
|
|
|
|
2021-10-06 01:52:45 +01:00
|
|
|
error: missing type for `const` item
|
2022-08-05 15:41:42 +04:00
|
|
|
--> $DIR/issue-89574.rs:2:22
|
2021-10-06 01:52:45 +01:00
|
|
|
|
|
|
|
|
|
LL | const EMPTY_ARRAY = [];
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
help: provide a type for the item
|
|
|
|
|
|
|
|
|
|
|
LL | const EMPTY_ARRAY: <type> = [];
|
|
|
|
|
| ++++++++
|
2021-10-06 01:52:45 +01:00
|
|
|
|
2025-01-02 18:18:19 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2021-10-06 01:52:45 +01:00
|
|
|
|
2024-01-31 16:27:58 +00:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|