diff options
Diffstat (limited to 'tests/ui/binop/placement-syntax.rs')
-rw-r--r-- | tests/ui/binop/placement-syntax.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/binop/placement-syntax.rs b/tests/ui/binop/placement-syntax.rs new file mode 100644 index 000000000..4df96dedb --- /dev/null +++ b/tests/ui/binop/placement-syntax.rs @@ -0,0 +1,6 @@ +fn main() { + let x = -5; + if x<-1 { //~ ERROR unexpected token: `<-` + println!("ok"); + } +} |