This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
1e5b2da94b
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 19:02:26 -06:00
fn
foo
(
_x
:
u32
)
{
_x
=
4
;
Update tests
2019-05-02 17:34:15 -05:00
//~^ ERROR cannot assign to immutable argument `_x`
Assignment to immutable argument: diagnostic tweak
2018-01-07 19:02:26 -06:00
}
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink