1 #![feature(doc_notable_trait)]
3 pub struct Wrapper<T> {
7 impl<T: SomeTrait> SomeTrait for Wrapper<T> {}
11 // @has doc_notable_trait/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_notable_trait/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_notable_trait/fn.bare_fn.html
33 // @has - '//code[@class="content"]' 'impl SomeTrait for SomeStruct'
34 pub fn bare_fn() -> SomeStruct {