]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-54705.rs
Rollup merge of #85503 - liigo:tooltips, r=GuillaumeGomez
[rust.git] / src / test / rustdoc / issue-54705.rs
1 pub trait ScopeHandle<'scope> {}
2
3
4
5 // @has issue_54705/struct.ScopeFutureContents.html
6 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//code' \
7 // "impl<'scope, S> Send for ScopeFutureContents<'scope, S> where S: Sync"
8 //
9 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//code' \
10 // "impl<'scope, S> Sync for ScopeFutureContents<'scope, S> where S: Sync"
11 pub struct ScopeFutureContents<'scope, S>
12     where S: ScopeHandle<'scope>,
13 {
14     dummy: &'scope S,
15     this: Box<ScopeFuture<'scope, S>>,
16 }
17
18 struct ScopeFuture<'scope, S>
19     where S: ScopeHandle<'scope>,
20 {
21     contents: ScopeFutureContents<'scope, S>,
22 }
23
24 unsafe impl<'scope, S> Send for ScopeFuture<'scope, S>
25     where S: ScopeHandle<'scope>,
26 {}
27 unsafe impl<'scope, S> Sync for ScopeFuture<'scope, S>
28     where S: ScopeHandle<'scope>,
29 {}