]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/impl-parts.rs
Rollup merge of #107580 - lenko-d:default_value_for_a_lifetime_generic_parameter_prod...
[rust.git] / tests / rustdoc / impl-parts.rs
1 #![feature(negative_impls)]
2 #![feature(auto_traits)]
3
4 pub auto trait AnAutoTrait {}
5
6 pub struct Foo<T> { field: T }
7
8 // @has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
9 //     "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
10 // @has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
11 //     "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
12 impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}