summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/dont-print-desugared-async.stderr
blob: 1dade23f62313321f8cf4c1b1cabe778bf35f822 (plain)
1
2
3
4
5
6
7
8
9
error[E0596]: cannot borrow data in a `&` reference as mutable
  --> $DIR/dont-print-desugared-async.rs:5:20
   |
LL | async fn async_fn(&ref mut s: &[i32]) {}
   |                    ^^^^^^^^^ cannot borrow as mutable through `&` reference

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0596`.