2 // Test that we are able to infer a suitable kind for this closure
3 // 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 = || mem::drop(drop_me);
24 assert_eq!(counter, 1);