]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/range_inclusive_dotdotdot.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / parser / range_inclusive_dotdotdot.stderr
1 error: unexpected token: `...`
2 --> $DIR/range_inclusive_dotdotdot.rs:18:12
3 |
4 LL | return ...1; //~ERROR unexpected token: `...`
5 | ^^^
6 help: use `..` for an exclusive range
7 |
8 LL | return ..1; //~ERROR unexpected token: `...`
9 | ^^
10 help: or `..=` for an inclusive range
11 |
12 LL | return ..=1; //~ERROR unexpected token: `...`
13 | ^^^
14
15 error: unexpected token: `...`
16 --> $DIR/range_inclusive_dotdotdot.rs:24:13
17 |
18 LL | let x = ...0; //~ERROR unexpected token: `...`
19 | ^^^
20 help: use `..` for an exclusive range
21 |
22 LL | let x = ..0; //~ERROR unexpected token: `...`
23 | ^^
24 help: or `..=` for an inclusive range
25 |
26 LL | let x = ..=0; //~ERROR unexpected token: `...`
27 | ^^^
28
29 error: unexpected token: `...`
30 --> $DIR/range_inclusive_dotdotdot.rs:28:14
31 |
32 LL | let x = 5...5; //~ERROR unexpected token: `...`
33 | ^^^
34 help: use `..` for an exclusive range
35 |
36 LL | let x = 5..5; //~ERROR unexpected token: `...`
37 | ^^
38 help: or `..=` for an inclusive range
39 |
40 LL | let x = 5..=5; //~ERROR unexpected token: `...`
41 | ^^^
42
43 error: unexpected token: `...`
44 --> $DIR/range_inclusive_dotdotdot.rs:32:15
45 |
46 LL | for _ in 0...1 {} //~ERROR unexpected token: `...`
47 | ^^^
48 help: use `..` for an exclusive range
49 |
50 LL | for _ in 0..1 {} //~ERROR unexpected token: `...`
51 | ^^
52 help: or `..=` for an inclusive range
53 |
54 LL | for _ in 0..=1 {} //~ERROR unexpected token: `...`
55 | ^^^
56
57 error: aborting due to 4 previous errors
58