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