rust/tests/ui/parser/suggest-const-for-global-var.rs

7 lines
101 B
Rust
Raw Normal View History

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