1 error: unexpected token: `...`
2 --> $DIR/issue-96335.rs:2:6
7 help: use `..` for an exclusive range
11 help: or `..=` for an inclusive range
16 error[E0308]: mismatched types
17 --> $DIR/issue-96335.rs:2:9
22 | | expected integer, found `RangeTo<{integer}>`
23 | arguments to this function are incorrect
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
30 error: aborting due to 2 previous errors
32 For more information about this error, try `rustc --explain E0308`.