2019-05-29 11:28:51 -05:00
|
|
|
error[E0596]: cannot borrow `data` as mutable, as it is not declared as mutable
|
2019-08-01 20:48:43 -05:00
|
|
|
--> $DIR/issue-61187.rs:6:5
|
2019-05-29 11:28:51 -05:00
|
|
|
|
|
|
|
|
LL | data.reverse();
|
2023-06-22 15:30:23 -05:00
|
|
|
| ^^^^ cannot borrow as mutable
|
2023-01-01 02:06:31 -06:00
|
|
|
|
|
|
|
|
help: consider changing this to be mutable
|
|
|
|
|
|
|
|
|
LL | async fn response(mut data: Vec<u8>) {
|
|
|
|
| +++
|
2019-05-29 11:28:51 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|