rust/tests/ui/borrowck/immutable-arg.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
362 B
Plaintext
Raw Normal View History

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