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