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
8 //~| expected reference
11 impl<'a, T> FnMut<(&'a T,)> for Foo {
12 extern "rust-call" fn call_mut(&mut self, (_,): (T,)) {}
13 //~^ ERROR: has an incompatible type for trait
14 //~| expected reference
17 impl<'a, T> FnOnce<(&'a T,)> for Foo {
20 extern "rust-call" fn call_once(self, (_,): (T,)) {}
21 //~^ ERROR: has an incompatible type for trait
22 //~| expected reference