rust/tests/ui/binop/placement-syntax.rs

7 lines
107 B
Rust

fn main() {
let x = -5;
if x<-1 { //~ ERROR unexpected token: `<-`
println!("ok");
}
}