rust/tests/rustdoc-ui/error-in-impl-trait/closure.rs

6 lines
174 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()
}