blob: 3fd950e0dbfc87b3d6fdea2c16f2dc85a1a1ed90 [file] [log] [blame]
// run-rustfix
// Make sure that invalid ranges generate an error during parsing, not an ICE
#![allow(path_statements)]
pub fn main() {
..;
0..;
..1;
0..1;
..; //~ERROR inclusive range with no end
//~^HELP use `..` instead
}
fn _foo1() {
..=1;
0..=1;
0..; //~ERROR inclusive range with no end
//~^HELP use `..` instead
}