1 // Make sure that an error is reported if the `call` function of the
2 // `fn`/`fn_mut` lang item is grossly ill-formed.
4 #![feature(lang_items)]
11 //~^ ERROR: `call` trait item in `fn` lang item must be a function
16 fn call(i: i32, j: i32) -> i32 { i + j }
17 //~^ ERROR: first argument of `call` in `fn_mut` lang item must be a reference
25 let mut b = || { i += 1; };