about summary refs log tree commit diff
path: root/tests/ui/borrowck/immutable-arg.stderr
blob: fb75172532f54ed8f5959aaa43af83a90df8f31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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`.