rust/src/test/rustdoc/impl-parts.rs

13 lines
451 B
Rust
Raw Normal View History

#![feature(negative_impls)]
#![feature(auto_traits)]
2015-07-19 22:14:56 -04:00
pub auto trait AnAutoTrait {}
2015-07-19 22:14:56 -04:00
pub struct Foo<T> { field: T }
2021-06-02 10:59:10 +02:00
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//code' \
// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync,"
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//code' \
// "impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync,"
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}