1 // check that moves due to a closure capture give a special note
5 fn move_after_move(x: String) {
10 fn borrow_after_move(x: String) {
15 fn borrow_mut_after_move(mut x: String) {
17 let y = &mut x; //~ ERROR
20 fn fn_ref<F: Fn()>(f: F) -> F { f }
21 fn fn_mut<F: FnMut()>(f: F) -> F { f }