]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/doc-spotlight.rs
1 #![feature(doc_spotlight)]
3 pub struct Wrapper
<T
> {
7 impl<T
: SomeTrait
> SomeTrait
for Wrapper
<T
> {}
11 // @has doc_spotlight/trait.SomeTrait.html
12 // @has - '//code[@class="content"]' 'impl<T: SomeTrait> SomeTrait for Wrapper<T>'
13 fn wrap_me(self) -> Wrapper
<Self> where Self: Sized
{
20 pub struct SomeStruct
;
21 impl SomeTrait
for SomeStruct {}
24 // @has doc_spotlight/struct.SomeStruct.html
25 // @has - '//code[@class="content"]' 'impl SomeTrait for SomeStruct'
26 // @has - '//code[@class="content"]' 'impl<T: SomeTrait> SomeTrait for Wrapper<T>'
27 pub fn new() -> SomeStruct
{
32 // @has doc_spotlight/fn.bare_fn.html
33 // @has - '//code[@class="content"]' 'impl SomeTrait for SomeStruct'
34 pub fn bare_fn() -> SomeStruct
{