1 error[E0277]: the type `[{integer}]` cannot be indexed by `&usize`
2 --> $DIR/suggest-dereferencing-index.rs:6:42
4 LL | let one_item_please: i32 = [1, 2, 3][i];
5 | ^ slice indices are of type `usize` or ranges of `usize`
7 = help: the trait `SliceIndex<[{integer}]>` is not implemented for `&usize`
8 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
9 = note: required for `[{integer}]` to implement `Index<&usize>`
10 help: dereference this index
12 LL | let one_item_please: i32 = [1, 2, 3][*i];
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.