fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.2 KiB58 linesraw
1error: unexpected token: `...`
2  --> $DIR/range_inclusive_dotdotdot.rs:6:12
3   |
4LL |     return ...1;
5   |            ^^^
6help: use `..` for an exclusive range
7   |
8LL |     return ..1;
9   |            ^^
10help: or `..=` for an inclusive range
11   |
12LL |     return ..=1;
13   |            ^^^
14
15error: unexpected token: `...`
16  --> $DIR/range_inclusive_dotdotdot.rs:12:13
17   |
18LL |     let x = ...0;
19   |             ^^^
20help: use `..` for an exclusive range
21   |
22LL |     let x = ..0;
23   |             ^^
24help: or `..=` for an inclusive range
25   |
26LL |     let x = ..=0;
27   |             ^^^
28
29error: unexpected token: `...`
30  --> $DIR/range_inclusive_dotdotdot.rs:16:14
31   |
32LL |     let x = 5...5;
33   |              ^^^
34help: use `..` for an exclusive range
35   |
36LL |     let x = 5..5;
37   |              ^^
38help: or `..=` for an inclusive range
39   |
40LL |     let x = 5..=5;
41   |              ^^^
42
43error: unexpected token: `...`
44  --> $DIR/range_inclusive_dotdotdot.rs:20:15
45   |
46LL |     for _ in 0...1 {}
47   |               ^^^
48help: use `..` for an exclusive range
49   |
50LL |     for _ in 0..1 {}
51   |               ^^
52help: or `..=` for an inclusive range
53   |
54LL |     for _ in 0..=1 {}
55   |               ^^^
56
57error: aborting due to 4 previous errors
58