blob: 01a6e7d8cb9a8f39d7f8ae65d527c98f6a2970a3 [file] [log] [blame]
#![deny(unreachable_patterns)]
fn main() {
match "world" {
"hello" => {}
_ => {},
}
match "world" {
ref _x if false => {}
"hello" => {}
"hello" => {} //~ ERROR unreachable pattern
_ => {},
}
}