rustc/tests/rustdoc-ui/error-in-impl-trait/closure.rs
2024-06-04 21:09:03 +02: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()
}