]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 XL |
1 | pub trait ScopeHandle<'scope> {} |
2 | ||
a1dfa0c6 | 3 | // @has issue_54705/struct.ScopeFutureContents.html |
17df50a5 | 4 | // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \ |
f2b60f7d | 5 | // "impl<'scope, S> Send for ScopeFutureContents<'scope, S>where S: Sync" |
a1dfa0c6 | 6 | // |
17df50a5 | 7 | // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \ |
f2b60f7d | 8 | // "impl<'scope, S> Sync for ScopeFutureContents<'scope, S>where S: Sync" |
a1dfa0c6 XL |
9 | pub struct ScopeFutureContents<'scope, S> |
10 | where S: ScopeHandle<'scope>, | |
11 | { | |
12 | dummy: &'scope S, | |
13 | this: Box<ScopeFuture<'scope, S>>, | |
14 | } | |
15 | ||
16 | struct ScopeFuture<'scope, S> | |
17 | where S: ScopeHandle<'scope>, | |
18 | { | |
19 | contents: ScopeFutureContents<'scope, S>, | |
20 | } | |
21 | ||
22 | unsafe impl<'scope, S> Send for ScopeFuture<'scope, S> | |
23 | where S: ScopeHandle<'scope>, | |
24 | {} | |
25 | unsafe impl<'scope, S> Sync for ScopeFuture<'scope, S> | |
26 | where S: ScopeHandle<'scope>, | |
27 | {} |