mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
9 lines
240 B
Plaintext
9 lines
240 B
Plaintext
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
|
|
|
|
error: aborting due to 1 previous error
|
|
|