rust/tests/rustdoc-ui/error-in-impl-trait/closure.rs
2023-10-20 21:14:01 +00:00

6 lines
173 B
Rust

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