mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
9 lines
209 B
Rust
9 lines
209 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() {}
|