about summary refs log tree commit diff
path: root/tests/ui/impl-trait/closure-in-impl-trait-arg.rs
blob: b522e0a816c63b0566fcc86f67b5e0803af2ee87 (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());
}