about summary refs log tree commit diff
path: root/tests/rustdoc-ui/error-in-impl-trait/closure.rs
blob: 74aae098e5751496a714f812d19efc08dbbfa576 (plain)
1
2
3
4
5
//@ 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()
}