2 // Test that we are able to infer a suitable kind for this `move`
3 // closure that is just called (`FnOnce`).
7 struct DropMe<'a>(&'a mut i32);
9 impl<'a> Drop for DropMe<'a> {
19 let drop_me = DropMe(&mut counter);
20 let tick = move || mem::drop(drop_me);
24 assert_eq!(counter, 1);