Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
binop
/
binary-minus-without-space.rs
blob: 64243ebbb94eba16224895887cb76504dc1c73fe [
file
] [
edit
]
//@ 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
);
}