]> git.lizzy.rs Git - rust.git/blob - tests/ui/lazy-type-alias-impl-trait/nested.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / lazy-type-alias-impl-trait / nested.rs
1 // check-pass
2
3 fn main() {}
4
5 struct RawTableInner<A> {
6     alloc: A,
7 }
8
9 impl<A> RawTableInner<A> {
10     fn prepare_resize(
11         self,
12     ) -> ScopeGuard<Self, impl FnMut(&mut Self)> {
13         ScopeGuard { dropfn: move |self_| {}, value: self,  }
14     }
15 }
16
17 pub struct ScopeGuard<T, F>
18 where
19     F: FnMut(&mut T),
20 {
21     dropfn: F,
22     value: T,
23 }