]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-61187.stderr
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / issues / issue-61187.stderr
1 error[E0596]: cannot borrow `data` as mutable, as it is not declared as mutable
2   --> $DIR/issue-61187.rs:6:5
3    |
4 LL | async fn response(data: Vec<u8>) {
5    |                   ---- help: consider changing this to be mutable: `mut data`
6 LL |     data.reverse();
7    |     ^^^^ cannot borrow as mutable
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0596`.