blob: 17adbd2630cefc6df3e28a7727e49fc32d0b1eb3 [file] [log] [blame]
//@ check-pass
fn main() {}
struct RawTableInner<A> {
alloc: A,
}
impl<A> RawTableInner<A> {
fn prepare_resize(
self,
) -> ScopeGuard<Self, impl FnMut(&mut Self)> {
ScopeGuard { dropfn: move |self_| {}, value: self, }
}
}
pub struct ScopeGuard<T, F>
where
F: FnMut(&mut T),
{
dropfn: F,
value: T,
}