]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/immutable-arg.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / borrowck / immutable-arg.stderr
1 error[E0384]: cannot assign to immutable argument `_x`
2   --> $DIR/immutable-arg.rs:2:5
3    |
4 LL | fn foo(_x: u32) {
5    |        -- help: consider making this binding mutable: `mut _x`
6 LL |     _x = 4;
7    |     ^^^^^^ cannot assign to immutable argument
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0384`.