rust/src/test/ui/parser/suggest-const-for-global-var.rs
2022-08-11 23:15:39 +08:00

7 lines
101 B
Rust

let X: i32 = 12;
//~^ ERROR expected item, found keyword `let`
fn main() {
println!("{}", X);
}