Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-26251.rs
blob: edb06fea8ad5333db9322141654ee1cbd24ca6e5 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
overlapping_patterns
)]
fn
main
()
{
let
x
=
'a'
;
let
y
=
match
x
{
'a'
..=
'b'
if
false
=>
"one"
,
'a'
=>
"two"
,
'a'
..=
'b'
=>
"three"
,
_
=>
panic
!(
"what?"
),
};
assert_eq
!(
y
,
"two"
);
}