about summary refs log tree commit diff
path: root/tests/rustdoc/impl-parts.rs
blob: 4f281bfd63c83362ab58060c8460e38b21367719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(negative_impls)]
#![feature(auto_traits)]

pub auto trait AnAutoTrait {}

pub struct Foo<T: Clone + Sync> { field: T }

//@ has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
//     "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
//@ has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
//     "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}