2018-05-25 13:33:15 -05:00
|
|
|
error[E0596]: cannot borrow immutable argument `b` as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/mut-borrow-of-mut-ref.rs:8:12
|
2018-05-25 13:33:15 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g(&mut b)
|
2018-05-25 13:33:15 -05:00
|
|
|
| ^ cannot borrow mutably
|
|
|
|
help: consider removing the `&mut`, as it is an immutable binding to a mutable reference
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | g(b)
|
2018-05-25 13:33:15 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|