rust/tests/rustdoc/impl-parts.rs

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

13 lines
496 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"]' \
2022-12-02 18:37:04 +00: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 18:37:04 +00:00
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
impl<T: Clone> !AnAutoTrait for Foo<T> where T: Sync {}