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