]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/dont-print-desugared-async.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / async-await / dont-print-desugared-async.rs
1 // Test that we don't show variables with from async fn desugaring
2
3 // edition:2018
4
5 async fn async_fn(&ref mut s: &[i32]) {}
6 //~^ ERROR cannot borrow data in a `&` reference as mutable [E0596]
7
8 fn main() {}