mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
12 lines
256 B
Rust
12 lines
256 B
Rust
//@ run-pass
|
|
//@ reference: expr.arith-logic.syntax
|
|
//@ reference: patterns.literal.syntax
|
|
//@ reference: patterns.literal.intro
|
|
// Check that issue #954 stays fixed
|
|
|
|
|
|
pub fn main() {
|
|
match -1 { -1 => {}, _ => panic!("wat") }
|
|
assert_eq!(1-1, 0);
|
|
}
|