rust/tests/rustdoc/impl-parts.rs

13 lines
484 B
Rust
Raw Normal View History

#![feature(negative_impls)]
#![feature(auto_traits)]
2015-07-19 21:14:56 -05:00
pub auto trait AnAutoTrait {}
2015-07-19 21:14:56 -05:00
pub struct Foo<T> { field: T }
// @has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
2022-12-02 12:37:04 -06:00
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
// @has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
2022-12-02 12:37:04 -06:00
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}