]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/impl-parts.rs
Auto merge of #69550 - RalfJung:scalar, r=oli-obk
[rust.git] / src / test / rustdoc / impl-parts.rs
1 #![feature(optin_builtin_traits)]
2
3 pub auto trait AnOibit {}
4
5 pub struct Foo<T> { field: T }
6
7 // @has impl_parts/struct.Foo.html '//*[@class="impl"]//code' \
8 //     "impl<T: Clone> !AnOibit for Foo<T> where T: Sync,"
9 // @has impl_parts/trait.AnOibit.html '//*[@class="item-list"]//code' \
10 //     "impl<T: Clone> !AnOibit for Foo<T> where T: Sync,"
11 impl<T: Clone> !AnOibit for Foo<T> where T: Sync {}