1 pub fn bar<F: Fn()>(_f: F) {} //~ NOTE change this to accept `FnMut` instead of `Fn`
6 //~^ ERROR cannot assign to `x`, as it is a captured variable in a `Fn` closure
7 //~| NOTE cannot assign
8 //~| NOTE expects `Fn` instead of `FnMut`
9 //~| NOTE in this closure