Sign in
fuchsia
/
third_party
/
rust
/
1dc13b5904cde9279b76909013cd40e1661fe8eb
/
.
/
src
/
test
/
ui
/
borrowck
/
immutable-arg.rs
blob: 5a5e619ef31f2ebf03005443fea97c9621d249c9 [
file
] [
log
] [
blame
]
//compile-flags: -Z borrowck=compare
fn
foo
(
_x
:
u32
)
{
_x
=
4
;
//~^ ERROR cannot assign to immutable argument `_x` (Mir)
//~^^ ERROR cannot assign twice to immutable variable `_x` (Ast)
}
fn
main
()
{}