2020-01-09 18:56:38 +08:00
|
|
|
#![feature(negative_impls)]
|
2020-11-23 11:54:31 +08:00
|
|
|
#![feature(auto_traits)]
|
2015-07-20 10:14:56 +08:00
|
|
|
|
2020-11-25 07:44:04 +08:00
|
|
|
pub auto trait AnAutoTrait {}
|
2015-07-20 10:14:56 +08:00
|
|
|
|
|
|
|
pub struct Foo<T> { field: T }
|
|
|
|
|
2024-06-21 20:03:08 +08:00
|
|
|
//@ has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
|
2022-12-03 02:37:04 +08:00
|
|
|
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
|
2024-06-21 20:03:08 +08:00
|
|
|
//@ has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
|
2022-12-03 02:37:04 +08:00
|
|
|
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
|
2020-11-25 07:44:04 +08:00
|
|
|
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}
|