diff options
Diffstat (limited to 'tests/ui/binop/binary-minus-without-space.rs')
| -rw-r--r-- | tests/ui/binop/binary-minus-without-space.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/binop/binary-minus-without-space.rs b/tests/ui/binop/binary-minus-without-space.rs new file mode 100644 index 00000000000..2fbd5300dd1 --- /dev/null +++ b/tests/ui/binop/binary-minus-without-space.rs @@ -0,0 +1,8 @@ +// run-pass +// Check that issue #954 stays fixed + + +pub fn main() { + match -1 { -1 => {}, _ => panic!("wat") } + assert_eq!(1-1, 0); +} |
