]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-55321.rs
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / rustdoc / issue-55321.rs
1 #![feature(negative_impls)]
2
3 // @has issue_55321/struct.A.html
4 // @has - '//*[@id="trait-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
5 // "impl !Send for A"
6 // @has - '//*[@id="trait-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
7 // "impl !Sync for A"
8 pub struct A();
9
10 impl !Send for A {}
11 impl !Sync for A {}
12
13 // @has issue_55321/struct.B.html
14 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
15 // "impl<T> !Send for B<T>"
16 // @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
17 // "impl<T> !Sync for B<T>"
18 pub struct B<T: ?Sized>(A, Box<T>);