about summary refs log tree commit diff
path: root/tests/ui/async-await/dont-print-desugared-async.rs
blob: 4a87688efff57c8c364b3f28eaea1a4a70fb8a27 (plain)
1
2
3
4
5
6
7
8
// 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() {}