fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
375 B20 linesraw
1// run-rustfix
2// Make sure that invalid ranges generate an error during parsing, not an ICE
3
4#![allow(path_statements)]
5
6pub fn main() {
7    ..;
8    0..;
9    ..1;
10    0..1;
11    ..; //~ERROR inclusive range with no end
12         //~^HELP use `..` instead
13}
14
15fn _foo1() {
16    ..=1;
17    0..=1;
18    0..; //~ERROR inclusive range with no end
19          //~^HELP use `..` instead
20}