about summary refs log tree commit diff
path: root/tests/ui/impl-trait/closure-in-type.rs
blob: 1e06e6e21fd2abf8eda9ba9cc5f18d9ec8a49eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass

fn bug<T>() -> impl Iterator<
    Item = [(); {
               |found: &String| Some(false);
               4
           }],
> {
    std::iter::empty()
}

fn main() {}