2023-01-28 14:02:00 -06:00
|
|
|
fn main() {
|
|
|
|
let x = 42;
|
|
|
|
match x {
|
2024-02-01 16:45:00 -06:00
|
|
|
//~^ ERROR: non-exhaustive patterns
|
|
|
|
//~| NOTE: not covered
|
|
|
|
//~| NOTE: matched value is of type
|
2023-01-28 14:02:00 -06:00
|
|
|
0..=73 => {},
|
2023-01-30 17:47:10 -06:00
|
|
|
74..=> {},
|
|
|
|
//~^ ERROR unexpected `>` after inclusive range
|
|
|
|
//~| NOTE this is parsed as an inclusive range `..=`
|
2023-01-28 14:02:00 -06:00
|
|
|
}
|
|
|
|
}
|