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

13 lines
419 B
Rust
Raw Normal View History

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