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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
505 B
Rust
Raw Normal View History

#![feature(negative_impls)]
#![feature(auto_traits)]
2015-07-20 02:14:56 +00:00
pub auto trait AnAutoTrait {}
2015-07-20 02:14:56 +00:00
pub struct Foo<T> { field: T }
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header in-band"]' \
2022-08-31 15:05:46 +00:00
// "impl<T: Clone> !AnAutoTrait for Foo<T>where T: Sync,"
// @has impl_parts/trait.AnAutoTrait.html '//*[@class="item-list"]//h3[@class="code-header in-band"]' \
2022-08-31 15:05:46 +00:00
// "impl<T: Clone> !AnAutoTrait for Foo<T>where T: Sync,"
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}