blob: 21e5c03eb1605b254f76db7f8ef7bccefc56e51e [file] [log] [blame]
// Make sure that invalid ranges generate an error during parsing, not an ICE
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
}