1 2 3 4 5 6
fn f<'r>(p: &'r mut fn(p: &mut ())) { (*p)(()) //~ ERROR mismatched types //~| expected `&mut ()`, found `()` } fn main() {}