about summary refs log tree commit diff
path: root/src/test/rustdoc/impl-parts.rs
blob: 68baca9a04e9aaed63e472caaaa9b62b60967f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(negative_impls)]
#![feature(optin_builtin_traits)]

pub auto trait AnOibit {}

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,"
// @has impl_parts/trait.AnOibit.html '//*[@class="item-list"]//code' \
//     "impl<T: Clone> !AnOibit for Foo<T> where T: Sync,"
impl<T: Clone> !AnOibit for Foo<T> where T: Sync {}