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
360 B
Plaintext
Raw Normal View History

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