This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
58e901b6fd
rust
/
tests
/
ui
/
borrowck
/
immutable-arg.rs
7 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
Assignment to immutable argument: diagnostic tweak
2018-01-07 17:02:26 -08:00
fn
foo
(
_x
:
u32
)
{
_x
=
4
;
Update tests
2019-05-02 18:34:15 -04:00
//~^ ERROR cannot assign to immutable argument `_x`
Assignment to immutable argument: diagnostic tweak
2018-01-07 17:02:26 -08:00
}
fn
main
(
)
{
}
Copy permalink