// check-pass // regression test for https://github.com/rust-lang/rust/issues/100800 #![feature(type_alias_impl_trait)] trait Anything {} impl Anything for T {} type Input = impl Anything; fn run ()>(f: F, i: Input) { f(i); } fn main() { run(|x: u32| {println!("{x}");}, 0); }