2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2020-11-22 19:54:31 -08:00
|
|
|
#![feature(auto_traits)]
|
2015-07-19 22:14:56 -04:00
|
|
|
|
2020-11-24 15:44:04 -08:00
|
|
|
pub auto trait AnAutoTrait {}
|
2015-07-19 22:14:56 -04:00
|
|
|
|
|
|
|
pub struct Foo<T> { field: T }
|
|
|
|
|
2022-09-25 13:52:26 -07:00
|
|
|
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
|
2022-08-31 17:05:46 +02:00
|
|
|
// "impl<T: Clone> !AnAutoTrait for Foo<T>where T: Sync,"
|
2022-09-25 13:52:26 -07:00
|
|
|
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3[@class="code-header"]' \
|
2022-08-31 17:05:46 +02:00
|
|
|
// "impl<T: Clone> !AnAutoTrait for Foo<T>where T: Sync,"
|
2020-11-24 15:44:04 -08:00
|
|
|
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}
|