Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans. Reduces element count on std::iter::Iterator by 30%.
16 lines
583 B
Rust
16 lines
583 B
Rust
#![feature(optin_builtin_traits)]
|
|
|
|
// @has issue_55321/struct.A.html
|
|
// @has - '//*[@id="implementations-list"]/*[@class="impl"]//code' "impl !Send for A"
|
|
// @has - '//*[@id="implementations-list"]/*[@class="impl"]//code' "impl !Sync for A"
|
|
pub struct A();
|
|
|
|
impl !Send for A {}
|
|
impl !Sync for A {}
|
|
|
|
// @has issue_55321/struct.B.html
|
|
// @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]//code' "impl<T> !Send for \
|
|
// B<T>"
|
|
// @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]//code' "impl<T> !Sync for \
|
|
// B<T>"
|
|
pub struct B<T: ?Sized>(A, Box<T>);
|