883932c6ba
Also fix a bug with the span passed in `mk_range`.
7 lines
190 B
Rust
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
|
|
}
|