rustc/tests/ui/async-await/dont-print-desugared-async.rs
2023-08-02 10:33:26 +02:00

9 lines
208 B
Rust

// Test that we don't show variables with from async fn desugaring
// edition:2018
async fn async_fn(&ref mut s: &[i32]) {}
//~^ ERROR cannot borrow data in a `&` reference as mutable [E0596]
fn main() {}