mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
15 lines
367 B
Plaintext
15 lines
367 B
Plaintext
error[E0384]: cannot assign to immutable argument `_x`
|
|
--> $DIR/immutable-arg.rs:2:5
|
|
|
|
|
LL | _x = 4;
|
|
| ^^^^^^ cannot assign to immutable argument
|
|
|
|
|
help: consider making this binding mutable
|
|
|
|
|
LL | fn foo(mut _x: u32) {
|
|
| +++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0384`.
|