mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
6 lines
209 B
Rust
6 lines
209 B
Rust
fn main() {
|
|
match 0 { 1 => () } //~ ERROR non-exhaustive patterns
|
|
match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
|
|
//-| NOTE match arms with guards don't count towards exhaustivity
|
|
}
|