Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
suggest-dereferencing-index.fixed
blob: 2460d5427647cef7c2c137f4cb4c7c283880c0d7 [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![allow(unused_variables)]
fn main
()
{
let
i
:
&
usize
=
&
1
;
let
one_item_please
:
i32
=
[
1
,
2
,
3
][*
i
];
//~ ERROR the type `[{integer}]` cannot be indexed by `&usize`
}