Chih-Hung Hsieh | da60c85 | 2019-12-19 14:56:55 -0800 | [diff] [blame] | 1 | // Test that we don't show variables with from async fn desugaring |
2 | |||||
3 | // edition:2018 | ||||
Chih-Hung Hsieh | da60c85 | 2019-12-19 14:56:55 -0800 | [diff] [blame] | 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() {} |