]> git.lizzy.rs Git - rust.git/blob - tests/ui/never_type/issue-96335.stderr
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / 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 `RangeTo<{integer}>`
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 error: aborting due to 2 previous errors
31
32 For more information about this error, try `rustc --explain E0308`.