1 struct Foo<'a>(&'a mut bool);
3 impl<'a> Drop for Foo<'a> {
9 fn f<T: FnOnce()>(t: T) {
14 let mut ran_drop = false;
16 let x = Foo(&mut ran_drop);
17 // this closure never by val uses its captures
18 // so it's basically a fn(&self)
19 // the shim used to not drop the `x`