]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/closure_args.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / closure_args.rs
1 // check-pass
2
3 // regression test for https://github.com/rust-lang/rust/issues/100800
4
5 #![feature(type_alias_impl_trait)]
6
7 trait Anything {}
8 impl<T> Anything for T {}
9 type Input = impl Anything;
10 fn run<F: FnOnce(Input) -> ()>(f: F, i: Input) {
11 f(i);
12 }
13
14 fn main() {
15 run(|x: u32| {println!("{x}");}, 0);
16 }