]> git.proxmox.com Git - rustc.git/blob - src/test/ui/never_type/issue-96335.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / never_type / issue-96335.stderr
1 error: unexpected token: `...`
2 --> $DIR/issue-96335.rs:2:6
3 |
4 LL | 0.....{loop{}1};
5 | ^^^
6 |
7 help: use `..` for an exclusive range
8 |
9 LL | 0....{loop{}1};
10 | ~~
11 help: or `..=` for an inclusive range
12 |
13 LL | 0..=..{loop{}1};
14 | ~~~
15
16 error[E0308]: mismatched types
17 --> $DIR/issue-96335.rs:2:9
18 |
19 LL | 0.....{loop{}1};
20 | ----^^^^^^^^^^^
21 | | |
22 | | expected integer, found struct `RangeTo`
23 | arguments to this function are incorrect
24 |
25 = note: expected type `{integer}`
26 found struct `RangeTo<{integer}>`
27 note: associated function defined here
28 --> $SRC_DIR/core/src/ops/range.rs:LL:COL
29 |
30 LL | pub const fn new(start: Idx, end: Idx) -> Self {
31 | ^^^
32
33 error: aborting due to 2 previous errors
34
35 For more information about this error, try `rustc --explain E0308`.