summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/dont-print-desugared-async.stderr
blob: d80467c7fa88756abf962371b63e457a2c206e99 (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 previous error

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