]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-68645-codegen-fulfillment.rs
1 // Regression test for #68645
3 #![feature(generic_associated_types)]
4 //~^ WARNING the feature `generic_associated_types` is incomplete and may not
7 type F
<'a
>: Fn() -> u32;
9 fn callme
<'a
>(f
: Self::F
<'a
>) -> u32 {
16 //~^ ERROR expected a `Fn<()>` closure, found `T`
20 <&dyn Iterator
<Item
= u8>>::callme(&std
::iter
::once(1));