]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/dont-print-desugared-async.stderr
Rollup merge of #63737 - HowJMay:fix_naming, r=jonas-schievink
[rust.git] / src / test / ui / async-await / dont-print-desugared-async.stderr
1 error[E0596]: cannot borrow data in a `&` reference as mutable
2   --> $DIR/dont-print-desugared-async.rs:5:20
3    |
4 LL | async fn async_fn(&ref mut s: &[i32]) {}
5    |                   -^^^^^^^^^
6    |                   ||
7    |                   |cannot borrow as mutable through `&` reference
8    |                   help: consider changing this to be a mutable reference: `&mut ref mut s`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0596`.