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

12 lines
400 B
Rust
Raw Normal View History

2015-07-19 22:14:56 -04:00
#![feature(optin_builtin_traits)]
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 {}