rust/src/test/rustdoc-ui/error-in-impl-trait/closure.rs
Joshua Nelson 31fcda170a Fix async-std at the price of breaking half the test suite
- Don't mark impl trait as an error
2020-08-03 21:26:54 -04:00

5 lines
173 B
Rust

// check-pass
// manually desugared version of an `async fn` (but with a closure instead of a generator)
pub fn a() -> impl Fn() -> u32 {
|| content::doesnt::matter()
}