2
2
// @has - '//a/@href' 'struct.ThisType.html'
3
3
// @has - '//a/@title' 'struct basic::ThisType'
4
4
// @has - '//a/@href' 'struct.ThisType.html#method.this_method'
5
- // @has - '//a/@title' 'associated function basic::ThisType::this_method'
5
+ // @has - '//a/@title' 'method basic::ThisType::this_method'
6
+ // @has - '//a/@href' 'struct.ThisType.html#method.this_assoc_fn'
7
+ // @has - '//a/@title' 'associated function basic::ThisType::this_assoc_fn'
6
8
// @has - '//a/@href' 'enum.ThisEnum.html'
7
9
// @has - '//a/@title' 'enum basic::ThisEnum'
8
10
// @has - '//a/@href' 'enum.ThisEnum.html#variant.ThisVariant'
9
11
// @has - '//a/@title' 'variant basic::ThisEnum::ThisVariant'
10
12
// @has - '//a/@href' 'trait.ThisTrait.html'
11
13
// @has - '//a/@title' 'trait basic::ThisTrait'
12
14
// @has - '//a/@href' 'trait.ThisTrait.html#tymethod.this_associated_method'
13
- // @has - '//a/@title' 'associated function basic::ThisTrait::this_associated_method'
15
+ // @has - '//a/@title' 'method basic::ThisTrait::this_associated_method'
16
+ // @has - '//a/@href' 'trait.ThisTrait.html#tymethod.this_associated_fn'
17
+ // @has - '//a/@title' 'associated function basic::ThisTrait::this_associated_fn'
14
18
// @has - '//a/@href' 'trait.ThisTrait.html#associatedtype.ThisAssociatedType'
15
19
// @has - '//a/@title' 'associated type basic::ThisTrait::ThisAssociatedType'
16
20
// @has - '//a/@href' 'trait.ThisTrait.html#associatedconstant.THIS_ASSOCIATED_CONST'
37
41
//!
38
42
//! * [`ThisType`](ThisType)
39
43
//! * [`ThisType::this_method`](ThisType::this_method)
44
+ //! * [`ThisType::this_assoc_fn`](ThisType::this_assoc_fn)
40
45
//! * [`ThisEnum`](ThisEnum)
41
46
//! * [`ThisEnum::ThisVariant`](ThisEnum::ThisVariant)
42
47
//! * [`ThisEnum::ThisVariantCtor`](ThisEnum::ThisVariantCtor)
43
48
//! * [`ThisTrait`](ThisTrait)
44
49
//! * [`ThisTrait::this_associated_method`](ThisTrait::this_associated_method)
50
+ //! * [`ThisTrait::this_associated_fn`](ThisTrait::this_associated_fn)
45
51
//! * [`ThisTrait::ThisAssociatedType`](ThisTrait::ThisAssociatedType)
46
52
//! * [`ThisTrait::THIS_ASSOCIATED_CONST`](ThisTrait::THIS_ASSOCIATED_CONST)
47
53
//! * [`ThisAlias`](ThisAlias)
@@ -68,13 +74,15 @@ macro_rules! this_macro {
68
74
pub struct ThisType ;
69
75
70
76
impl ThisType {
71
- pub fn this_method ( ) { }
77
+ pub fn this_assoc_fn ( ) { }
78
+ pub fn this_method ( self ) { }
72
79
}
73
80
pub enum ThisEnum { ThisVariant , ThisVariantCtor ( u32 ) , }
74
81
pub trait ThisTrait {
75
82
type ThisAssociatedType ;
76
83
const THIS_ASSOCIATED_CONST : u8 ;
77
- fn this_associated_method ( ) ;
84
+ fn this_associated_fn ( ) ;
85
+ fn this_associated_method ( & self ) ;
78
86
}
79
87
pub type ThisAlias = Result < ( ) , ( ) > ;
80
88
pub union ThisUnion { this_field : usize , }
0 commit comments