This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
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
(
)
{
}
Reference in New Issue
Copy Permalink