Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
or-patterns
/
simplification_subtleties.rs
blob: a932bd531e6d87ae5e8c9d4af47b4ffa96325e58 [
file
] [
log
] [
blame
]
//@ run-pass
#[
allow
(
unreachable_patterns
)]
fn
main
()
{
// Test that we don't naively sort the two `2`s together and confuse the failure paths.
match
(
1
,
true
)
{
(
1
|
2
,
false
|
false
)
=>
unreachable
!(),
(
2
,
_
)
=>
unreachable
!(),
_
=>
{}
}
}