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 }
|
|
|
|
|
2023-01-28 16:35:02 -07:00
|
|
|
// @has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
|
2022-12-02 19:37:04 +01:00
|
|
|
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
|
2022-10-06 10:20:47 -07:00
|
|
|
// @has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
|
2022-12-02 19:37:04 +01:00
|
|
|
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
|
2020-11-24 15:44:04 -08:00
|
|
|
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}
|