]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-68643-broken-mir.rs
1 // Regression test for #68643
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 `std::ops::Fn<()>` closure, found `T`
20 <fn()>::callme(|| {}
);