1 // Test `X...` and `X..=` range patterns not being allowed syntactically.
2 // FIXME(Centril): perhaps these should be semantic restrictions.
8 if let 0... = 1 {} //~ ERROR inclusive range with no end
9 if let 0..= = 1 {} //~ ERROR inclusive range with no end
11 if let X... = 1 {} //~ ERROR inclusive range with no end
12 if let X..= = 1 {} //~ ERROR inclusive range with no end
18 let $e...; //~ ERROR inclusive range with no end
19 let $e..=; //~ ERROR inclusive range with no end