Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
borrowck
/
borrowck-use-in-index-lvalue.fixed
blob: 947c7f5b7442a08b1c62679ffa95ffebf2a1477a [
file
] [
log
] [
blame
]
//@ run-rustfix
#[allow(unused_mut)]
fn test
()
{
let
w
:
&
mut
[
isize
]
=
&
mut
[];
w
[
5
]
=
0
;
//~ ERROR [E0381]
let
mut w
:
&
mut
[
isize
]
=
&
mut
[];
w
[
5
]
=
0
;
//~ ERROR [E0381]
}
fn main
()
{
test
();
}