1 #![feature(fn_traits, unboxed_closures)]
10 impl FnMut<(isize,)> for S {
11 extern "rust-call" fn call_mut(&mut self, (z,): (isize,)) -> isize {
16 impl FnOnce<(isize,)> for S {
18 extern "rust-call" fn call_once(mut self, (z,): (isize,)) -> isize {
25 impl FnOnce<(i32,)> for F {
28 extern "rust-call" fn call_once(self, args: (i32,)) -> Self::Output {}
32 let mut s = S { x: 3, y: 3 };
34 //~^ ERROR mismatched types
36 //~^ ERROR function takes 1 argument but 0 arguments were supplied
37 let ans = s("burma", "shave");
38 //~^ ERROR function takes 1 argument but 2 arguments were supplied
41 //~^ ERROR mismatched types