rust/src/test/ui/parser/range_inclusive.rs
Mazdak Farrokhzad 883932c6ba Ban ...X pats, harden tests, and improve diagnostics.
Also fix a bug with the span passed in `mk_range`.
2020-01-11 08:58:58 +01:00

7 lines
190 B
Rust

// Make sure that inclusive ranges with no end point don't parse.
pub fn main() {
for _ in 1..= {} //~ERROR inclusive range with no end
//~^HELP use `..` instead
}