Sign in
fuchsia
/
third_party
/
rust
/
d38d6be336e87055d90375c981806d5d133f446a
/
.
/
src
/
test
/
ui
/
writing-to-immutable-vec.rs
blob: ad2bf33fc20ba08867e2f250702e2beed901b4a7 [
file
] [
log
] [
blame
]
fn
main
()
{
let
v
:
Vec
<
isize
>
=
vec
![
1
,
2
,
3
];
v
[
1
]
=
4
;
//~ ERROR cannot borrow immutable local variable `v` as mutable
}