about summary refs log tree commit diff
path: root/tests/ui/suggestions/range-index-instead-of-colon.stderr
blob: a3264fc2359737b2b223498e6d19752b0102cbdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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];
LL +     &[1, 2, 3][1..2];
   |

error: aborting due to 1 previous error