2018-10-25 15:14:32 -04:00
|
|
|
#![feature(optin_builtin_traits)]
|
|
|
|
|
|
|
|
// @has issue_55321/struct.A.html
|
2018-12-26 21:23:05 -08:00
|
|
|
// @has - '//*[@id="implementations-list"]/*[@class="impl"]//code' "impl !Send for A"
|
|
|
|
// @has - '//*[@id="implementations-list"]/*[@class="impl"]//code' "impl !Sync for A"
|
2018-10-25 15:14:32 -04:00
|
|
|
pub struct A();
|
|
|
|
|
|
|
|
impl !Send for A {}
|
|
|
|
impl !Sync for A {}
|
|
|
|
|
|
|
|
// @has issue_55321/struct.B.html
|
2018-12-26 21:23:05 -08:00
|
|
|
// @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]//code' "impl<T> !Send for \
|
2018-10-25 15:14:32 -04:00
|
|
|
// B<T>"
|
2018-12-26 21:23:05 -08:00
|
|
|
// @has - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]//code' "impl<T> !Sync for \
|
2018-10-25 15:14:32 -04:00
|
|
|
// B<T>"
|
|
|
|
pub struct B<T: ?Sized>(A, Box<T>);
|