rust/src/test/ui/issues/issue-30240.rs
2018-12-25 21:08:33 -07:00

11 lines
221 B
Rust

fn main() {
match "world" { //~ ERROR non-exhaustive patterns: `&_`
"hello" => {}
}
match "world" { //~ ERROR non-exhaustive patterns: `&_`
ref _x if false => {}
"hello" => {}
}
}