blob: 243f9cd6d4f4cb782415765fb013a0cbfd17552e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// check-pass
// regression test for https://github.com/rust-lang/rust/issues/100800
#![feature(type_alias_impl_trait)]
trait Anything {}
impl<T> Anything for T {}
type Input = impl Anything;
fn run<F: FnOnce(Input) -> ()>(f: F, i: Input) {
f(i);
}
fn bop(_: Input) {
run(
|x: u32| {
println!("{x}");
},
0,
);
}
fn main() {}
|