1 fn takes_fn(f: impl Fn()) {
4 //~^ ERROR use of moved value
5 //~| HELP consider borrowing
9 fn takes_fn_mut(m: impl FnMut()) {
12 //~^ HELP consider mutably borrowing
15 //~^ ERROR use of moved value
20 let mut closure = || {
23 takes_fnonce(closure);
24 //~^ HELP consider mutably borrowing
26 //~^ ERROR borrow of moved value
33 // Could also be Fn[Mut], here it doesn't matter
34 fn takes_fnonce(_: impl FnOnce()) {}