2 #![allow(unused_variables)]
3 // Test that you can supply `&F` where `F: FnMut()`.
5 #![feature(lang_items)]
7 fn a<F:FnMut() -> i32>(mut f: F) -> i32 {
11 fn b(f: &mut dyn FnMut() -> i32) -> i32 {
15 fn c<F:FnMut() -> i32>(f: &mut F) -> i32 {
22 let x = b(&mut || 22);
25 let x = c(&mut || 22);