summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/closure-in-impl-trait-arg.rs
blob: 3cfce459e37dc8b6c5f62b7aca8b0d1ca25f8c1b (plain)
1
2
3
4
5
6
7
// run-pass
#![allow(unused_must_use)]
fn bug(_: impl Iterator<Item = [(); { |x: u32| { x }; 4 }]>) {}

fn main() {
    bug(std::iter::empty());
}