]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.rs
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / tests / ui / half-open-range-patterns / half-open-range-pats-inclusive-match-arrow.rs
1 fn main() {
2     let x = 42;
3     match x {
4         0..=73 => {},
5         74..=> {},   //~ ERROR unexpected `=>` after open range
6                      //~^ ERROR expected one of `=>`, `if`, or `|`, found `>`
7     }
8 }