1 #![feature(fn_traits, unboxed_closures)]
5 impl<'a, T> Fn<(&'a T,)> for Foo {
6 extern "rust-call" fn call(&self, (_,): (T,)) {}
7 //~^ ERROR: has an incompatible type for trait
10 impl<'a, T> FnMut<(&'a T,)> for Foo {
11 extern "rust-call" fn call_mut(&mut self, (_,): (T,)) {}
12 //~^ ERROR: has an incompatible type for trait
15 impl<'a, T> FnOnce<(&'a T,)> for Foo {
18 extern "rust-call" fn call_once(self, (_,): (T,)) {}
19 //~^ ERROR: has an incompatible type for trait