]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/dont-print-desugared-async.stderr
Rollup merge of #107048 - DebugSteven:newer-x-check-cargo, r=albertlarsan68
[rust.git] / tests / 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`.