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