summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/range-index-instead-of-colon.stderr
blob: df29356cc16b3094716c916337f834e8264a7325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected one of `.`, `?`, `]`, or an operator, found `:`
  --> $DIR/range-index-instead-of-colon.rs:4:17
   |
LL |     &[1, 2, 3][1:2];
   |                 ^ expected one of `.`, `?`, `]`, or an operator
   |
help: you might have meant a range expression
   |
LL |     &[1, 2, 3][1..2];
   |                 ~~

error: aborting due to 1 previous error