10
10
11
11
// @has intra_links/index.html
12
12
// @has - '//a/@href' '../intra_links/struct.ThisType.html'
13
+ // @has - '//a/@href' '../intra_links/struct.ThisType.html#method.this_method'
13
14
// @has - '//a/@href' '../intra_links/enum.ThisEnum.html'
15
+ // @has - '//a/@href' '../intra_links/enum.ThisEnum.html#ThisVariant.v'
16
+ // @has - '//a/@href' '../intra_links/trait.ThisTrait.html'
17
+ // @has - '//a/@href' '../intra_links/trait.ThisTrait.html#tymethod.this_associated_method'
18
+ // @has - '//a/@href' '../intra_links/trait.ThisTrait.html#associatedtype.ThisAssociatedType'
19
+ // @has - '//a/@href' '../intra_links/trait.ThisTrait.html#associatedconstant.THIS_ASSOCIATED_CONST'
14
20
// @has - '//a/@href' '../intra_links/trait.ThisTrait.html'
15
21
// @has - '//a/@href' '../intra_links/type.ThisAlias.html'
16
22
// @has - '//a/@href' '../intra_links/union.ThisUnion.html'
23
29
//! In this crate we would like to link to:
24
30
//!
25
31
//! * [`ThisType`](ThisType)
32
+ //! * [`ThisType::this_method`](ThisType::this_method)
26
33
//! * [`ThisEnum`](ThisEnum)
34
+ //! * [`ThisEnum::ThisVariant`](ThisEnum::ThisVariant)
27
35
//! * [`ThisTrait`](ThisTrait)
36
+ //! * [`ThisTrait::this_associated_method`](ThisTrait::this_associated_method)
37
+ //! * [`ThisTrait::ThisAssociatedType`](ThisTrait::ThisAssociatedType)
38
+ //! * [`ThisTrait::THIS_ASSOCIATED_CONST`](ThisTrait::THIS_ASSOCIATED_CONST)
28
39
//! * [`ThisAlias`](ThisAlias)
29
40
//! * [`ThisUnion`](ThisUnion)
30
41
//! * [`this_function`](this_function())
@@ -45,8 +56,16 @@ macro_rules! this_macro {
45
56
}
46
57
47
58
pub struct ThisType ;
59
+
60
+ impl ThisType {
61
+ pub fn this_method ( ) { }
62
+ }
48
63
pub enum ThisEnum { ThisVariant , }
49
- pub trait ThisTrait { }
64
+ pub trait ThisTrait {
65
+ type ThisAssociatedType ;
66
+ const THIS_ASSOCIATED_CONST : u8 ;
67
+ fn this_associated_method ( ) ;
68
+ }
50
69
pub type ThisAlias = Result < ( ) , ( ) > ;
51
70
pub union ThisUnion { this_field : usize , }
52
71
0 commit comments