// check-pass fn main() {} struct RawTableInner { alloc: A, } impl RawTableInner { fn prepare_resize( self, ) -> ScopeGuard { ScopeGuard { dropfn: move |self_| {}, value: self, } } } pub struct ScopeGuard where F: FnMut(&mut T), { dropfn: F, value: T, }