summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/error-in-impl-trait/closure.rs
blob: 628c61a6a1a8bb603d54b37ea86c20e1eccf0b42 (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()
}