Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
pattern
/
usefulness
/
issue-30240-b.rs
blob: 01a6e7d8cb9a8f39d7f8ae65d527c98f6a2970a3 [
file
] [
log
] [
blame
]
#![
deny
(
unreachable_patterns
)]
fn
main
()
{
match
"world"
{
"hello"
=>
{}
_
=>
{},
}
match
"world"
{
ref
_x
if
false
=>
{}
"hello"
=>
{}
"hello"
=>
{}
//~ ERROR unreachable pattern
_
=>
{},
}
}