2019-05-03 16:24:52 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2019-08-01 20:48:43 -05:00
|
|
|
--> $DIR/dont-print-desugared-async.rs:5:20
|
2019-05-03 16:24:52 -05:00
|
|
|
|
|
|
|
|
LL | async fn async_fn(&ref mut s: &[i32]) {}
|
2020-02-12 18:46:15 -06:00
|
|
|
| ^^^^^^^^^ cannot borrow as mutable through `&` reference
|
2019-05-03 16:24:52 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-05-03 16:24:52 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|