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