]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/wf_check_closures.rs
1 #![feature(type_alias_impl_trait)]
7 type FooFn
<B
> = impl FnOnce();
9 fn foo
<B
: Bar
>(bar
: B
) -> FooFn
<B
> {
11 //~^ ERROR the trait bound `B: Bar` is not satisfied
15 let boom
: FooFn
<u32> = unsafe { core::mem::zeroed() }
;