1 2 3 4 5 6
fn foo<F: FnMut()>() { let _: Box<F> = Box::new(|| ()); //~^ ERROR mismatched types } fn main() {}