2022-08-11 22:26:26 +08:00
|
|
|
error: expected item, found keyword `let`
|
|
|
|
--> $DIR/suggest-const-for-global-var.rs:1:1
|
|
|
|
|
|
|
|
|
LL | let X: i32 = 12;
|
|
|
|
| ^^^ consider using `const` or `static` instead of `let` for global variables
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-08-11 22:26:26 +08:00
|
|
|
|