rust/src/test/ui/parser/keyword-if-as-identifier.rs

6 lines
160 B
Rust
Raw Normal View History

// This file was auto-generated using 'src/etc/generate-keyword-tests.py if'
fn main() {
2016-04-24 13:35:50 -05:00
let if = "foo"; //~ error: expected pattern, found keyword `if`
}