]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/closure_args.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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 }