2019-05-02 22:34:15 +00:00
|
|
|
error[E0384]: cannot assign to immutable argument `_x`
|
|
|
|
--> $DIR/immutable-arg.rs:2:5
|
2018-01-08 01:02:26 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | _x = 4;
|
2018-01-08 01:02:26 +00:00
|
|
|
| ^^^^^^ cannot assign to immutable argument
|
2024-07-03 21:01:29 +00:00
|
|
|
|
|
|
|
|
help: consider making this binding mutable
|
|
|
|
|
|
|
|
|
LL | fn foo(mut _x: u32) {
|
|
|
|
| +++
|
2018-01-08 01:02:26 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-01-08 01:02:26 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0384`.
|