diff options
Diffstat (limited to 'tests/ui/async-await/dont-print-desugared-async.rs')
-rw-r--r-- | tests/ui/async-await/dont-print-desugared-async.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/async-await/dont-print-desugared-async.rs b/tests/ui/async-await/dont-print-desugared-async.rs new file mode 100644 index 000000000..68341a24c --- /dev/null +++ b/tests/ui/async-await/dont-print-desugared-async.rs @@ -0,0 +1,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() {} |