rust/tests/ui/parser/keyword-ref-as-identifier.rs

4 lines
77 B
Rust

fn main() {
let ref = "foo"; //~ error: expected identifier, found `=`
}