Closed
Description
I tried formatting this code:
#![feature(async_closure)]
async fn my_func(op: impl for<'x> async Fn(&'x String)) {
let s = String::new();
op(&s).await
}
fn main() { }
I expected to see this happen: nothing
Instead, this happened: rustfmt reorders for
and async
incorrectly...
#![feature(async_closure)]
async fn my_func(op: impl async for<'x> Fn(&'x String)) {
let s = String::new();
op(&s).await
}
fn main() {}