rust/src/test/run-pass/binary-minus-without-space.rs
Marijn Haverbeke f26e770745 Make 1-1 parse again
Issue #954

This is not a very elegant fix -- we should probably do something with
constant folding to handle negative-int alt patterns in the future.
2011-10-07 16:46:44 +02:00

7 lines
94 B
Rust

// Check that issue #954 stays fixed
fn main() {
alt -1 { -1 {} }
assert 1-1 == 0;
}