mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 23:06:23 +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
|
|
}
|