]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/issue-54705.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / rustdoc / issue-54705.rs
CommitLineData
a1dfa0c6
XL
1pub 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
9pub struct ScopeFutureContents<'scope, S>
10 where S: ScopeHandle<'scope>,
11{
12 dummy: &'scope S,
13 this: Box<ScopeFuture<'scope, S>>,
14}
15
16struct ScopeFuture<'scope, S>
17 where S: ScopeHandle<'scope>,
18{
19 contents: ScopeFutureContents<'scope, S>,
20}
21
22unsafe impl<'scope, S> Send for ScopeFuture<'scope, S>
23 where S: ScopeHandle<'scope>,
24{}
25unsafe impl<'scope, S> Sync for ScopeFuture<'scope, S>
26 where S: ScopeHandle<'scope>,
27{}