]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/range_inclusive_dotdotdot.stderr
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[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    |
7 help: use `..` for an exclusive range
8    |
9 LL |     return ..1;
10    |            ~~
11 help: or `..=` for an inclusive range
12    |
13 LL |     return ..=1;
14    |            ~~~
15
16 error: unexpected token: `...`
17   --> $DIR/range_inclusive_dotdotdot.rs:12:13
18    |
19 LL |     let x = ...0;
20    |             ^^^
21    |
22 help: use `..` for an exclusive range
23    |
24 LL |     let x = ..0;
25    |             ~~
26 help: or `..=` for an inclusive range
27    |
28 LL |     let x = ..=0;
29    |             ~~~
30
31 error: unexpected token: `...`
32   --> $DIR/range_inclusive_dotdotdot.rs:16:14
33    |
34 LL |     let x = 5...5;
35    |              ^^^
36    |
37 help: use `..` for an exclusive range
38    |
39 LL |     let x = 5..5;
40    |              ~~
41 help: or `..=` for an inclusive range
42    |
43 LL |     let x = 5..=5;
44    |              ~~~
45
46 error: unexpected token: `...`
47   --> $DIR/range_inclusive_dotdotdot.rs:20:15
48    |
49 LL |     for _ in 0...1 {}
50    |               ^^^
51    |
52 help: use `..` for an exclusive range
53    |
54 LL |     for _ in 0..1 {}
55    |               ~~
56 help: or `..=` for an inclusive range
57    |
58 LL |     for _ in 0..=1 {}
59    |               ~~~
60
61 error: aborting due to 4 previous errors
62