Sign in
android
/
toolchain
/
rustc
/
d59a28787b7ba06edbd1e4528a42b66d67dc6a19
/
.
/
src
/
test
/
ui
/
issues
/
issue-26251.rs
blob: a3e26a41232c7b382d9545dc33a92949c73ed539 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
overlapping_range_endpoints
)]
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"
);
}