]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/dont-print-desugared-async.stderr
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[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    |                    ^^^^^^^^^ cannot borrow as mutable through `&` reference
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0596`.