1 // Regression test for #23827
3 #![feature(fn_traits, unboxed_closures)]
10 fn apply(self, e: u32);
13 impl<C: Component> Fn<(C,)> for Prototype {
14 extern "rust-call" fn call(&self, (comp,): (C,)) -> Prototype {
15 comp.apply(self.target);
20 impl<C: Component> FnMut<(C,)> for Prototype {
21 extern "rust-call" fn call_mut(&mut self, (comp,): (C,)) -> Prototype {
22 Fn::call(*&self, (comp,))
26 impl<C: Component> FnOnce<(C,)> for Prototype {
28 extern "rust-call" fn call_once(self, (comp,): (C,)) -> Prototype {
29 Fn::call(&self, (comp,))