]>
Commit | Line | Data |
---|---|---|
a2a8927a XL |
1 | #![feature(doc_notable_trait)] |
2 | ||
3 | #[doc(notable_trait)] | |
4 | pub trait SomeTrait {} | |
5 | ||
6 | pub struct SomeStruct; | |
7 | pub struct OtherStruct; | |
8 | impl SomeTrait for &[SomeStruct] {} | |
9 | ||
10 | // @has doc_notable_trait_slice/fn.bare_fn_matches.html | |
11 | // @has - '//code[@class="content"]' 'impl SomeTrait for &[SomeStruct]' | |
12 | pub fn bare_fn_matches() -> &'static [SomeStruct] { | |
13 | &[] | |
14 | } | |
15 | ||
16 | // @has doc_notable_trait_slice/fn.bare_fn_no_matches.html | |
17 | // @!has - '//code[@class="content"]' 'impl SomeTrait for &[SomeStruct]' | |
18 | pub fn bare_fn_no_matches() -> &'static [OtherStruct] { | |
19 | &[] | |
20 | } |