// Regression test for issue 67856 #![feature(unboxed_closures)] #![feature(impl_trait_in_assoc_type)] #![feature(fn_traits)] trait MyTrait {} impl MyTrait for () {} impl FnOnce<()> for &F { //~^ ERROR type parameter `F` must be used type Output = impl MyTrait; extern "rust-call" fn call_once(self, _: ()) -> Self::Output {} } fn main() {}