]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.rs
Improve diagnostic for missing space in range pattern
[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..=> {},
6         //~^ ERROR unexpected `>` after inclusive range
7         //~| NOTE this is parsed as an inclusive range `..=`
8     }
9 }