@@ -36,79 +36,79 @@ fn main() {
36
36
// a singleton type of the fn itself that the type inference would
37
37
// otherwise assign.
38
38
39
- // Check that fn() is #[structural_match]
39
+ // Check that fn() is structural-match
40
40
const CFN1 : Wrap < fn ( ) > = Wrap ( trivial) ;
41
41
let input: Wrap < fn ( ) > = Wrap ( trivial) ;
42
42
match Wrap ( input) {
43
43
Wrap ( CFN1 ) => count += 1 ,
44
44
Wrap ( _) => { }
45
45
} ;
46
46
47
- // Check that fn(T) is #[structural_match] when T is too.
47
+ // Check that fn(T) is structural-match when T is too.
48
48
const CFN2 : Wrap < fn ( SM ) > = Wrap ( sm_to) ;
49
49
let input: Wrap < fn ( SM ) > = Wrap ( sm_to) ;
50
50
match Wrap ( input) {
51
51
Wrap ( CFN2 ) => count += 1 ,
52
52
Wrap ( _) => { }
53
53
} ;
54
54
55
- // Check that fn() -> T is #[structural_match] when T is too.
55
+ // Check that fn() -> T is structural-match when T is too.
56
56
const CFN3 : Wrap < fn ( ) -> SM > = Wrap ( to_sm) ;
57
57
let input: Wrap < fn ( ) -> SM > = Wrap ( to_sm) ;
58
58
match Wrap ( input) {
59
59
Wrap ( CFN3 ) => count += 1 ,
60
60
Wrap ( _) => { }
61
61
} ;
62
62
63
- // Check that fn(T) is #[structural_match] even if T is not.
63
+ // Check that fn(T) is structural-match even if T is not.
64
64
const CFN4 : Wrap < fn ( NotSM ) > = Wrap ( not_sm_to) ;
65
65
let input: Wrap < fn ( NotSM ) > = Wrap ( not_sm_to) ;
66
66
match Wrap ( input) {
67
67
Wrap ( CFN4 ) => count += 1 ,
68
68
Wrap ( _) => { }
69
69
} ;
70
70
71
- // Check that fn() -> T is #[structural_match] even if T is not.
71
+ // Check that fn() -> T is structural-match even if T is not.
72
72
const CFN5 : Wrap < fn ( ) -> NotSM > = Wrap ( to_not_sm) ;
73
73
let input: Wrap < fn ( ) -> NotSM > = Wrap ( to_not_sm) ;
74
74
match Wrap ( input) {
75
75
Wrap ( CFN5 ) => count += 1 ,
76
76
Wrap ( _) => { }
77
77
} ;
78
78
79
- // Check that fn(&T) is #[structural_match] when T is too.
79
+ // Check that fn(&T) is structural-match when T is too.
80
80
const CFN6 : Wrap < fn ( & SM ) > = Wrap ( r_sm_to) ;
81
81
let input: Wrap < fn ( & SM ) > = Wrap ( r_sm_to) ;
82
82
match Wrap ( input) {
83
83
Wrap ( CFN6 ) => count += 1 ,
84
84
Wrap ( _) => { }
85
85
} ;
86
86
87
- // Check that fn() -> &T is #[structural_match] when T is too.
87
+ // Check that fn() -> &T is structural-match when T is too.
88
88
const CFN7 : Wrap < fn ( & ( ) ) -> & SM > = Wrap ( r_to_r_sm) ;
89
89
let input: Wrap < fn ( & ( ) ) -> & SM > = Wrap ( r_to_r_sm) ;
90
90
match Wrap ( input) {
91
91
Wrap ( CFN7 ) => count += 1 ,
92
92
Wrap ( _) => { }
93
93
} ;
94
94
95
- // Check that fn(T) is #[structural_match] even if T is not.
95
+ // Check that fn(T) is structural-match even if T is not.
96
96
const CFN8 : Wrap < fn ( & NotSM ) > = Wrap ( r_not_sm_to) ;
97
97
let input: Wrap < fn ( & NotSM ) > = Wrap ( r_not_sm_to) ;
98
98
match Wrap ( input) {
99
99
Wrap ( CFN8 ) => count += 1 ,
100
100
Wrap ( _) => { }
101
101
} ;
102
102
103
- // Check that fn() -> T is #[structural_match] even if T is not.
103
+ // Check that fn() -> T is structural-match even if T is not.
104
104
const CFN9 : Wrap < fn ( & ( ) ) -> & NotSM > = Wrap ( r_to_r_not_sm) ;
105
105
let input: Wrap < fn ( & ( ) ) -> & NotSM > = Wrap ( r_to_r_not_sm) ;
106
106
match Wrap ( input) {
107
107
Wrap ( CFN9 ) => count += 1 ,
108
108
Wrap ( _) => { }
109
109
} ;
110
110
111
- // Check that a type which has fn ptrs is `#[structural_match]` .
111
+ // Check that a type which has fn ptrs is structural-match .
112
112
#[ derive( PartialEq , Eq ) ]
113
113
struct Foo {
114
114
alpha : fn ( NotSM ) ,
0 commit comments