@@ -60,7 +60,20 @@ LL | | };
60
60
| |_________^ help: try this: `matches!(x, E::A(_) | E::B(_))`
61
61
62
62
error: match expression looks like `matches!` macro
63
- --> $DIR/match_expr_like_matches_macro.rs:66:20
63
+ --> $DIR/match_expr_like_matches_macro.rs:68:20
64
+ |
65
+ LL | let _ans = match x {
66
+ | ____________________^
67
+ LL | | E::A(_) => {
68
+ LL | | true
69
+ LL | | }
70
+ LL | | E::B(_) => true,
71
+ LL | | _ => false,
72
+ LL | | };
73
+ | |_________^ help: try this: `matches!(x, E::A(_) | E::B(_))`
74
+
75
+ error: match expression looks like `matches!` macro
76
+ --> $DIR/match_expr_like_matches_macro.rs:78:20
64
77
|
65
78
LL | let _ans = match x {
66
79
| ____________________^
@@ -71,7 +84,7 @@ LL | | };
71
84
| |_________^ help: try this: `!matches!(x, E::B(_) | E::C)`
72
85
73
86
error: match expression looks like `matches!` macro
74
- --> $DIR/match_expr_like_matches_macro.rs:126 :18
87
+ --> $DIR/match_expr_like_matches_macro.rs:138 :18
75
88
|
76
89
LL | let _z = match &z {
77
90
| __________________^
@@ -81,7 +94,7 @@ LL | | };
81
94
| |_________^ help: try this: `matches!(z, Some(3))`
82
95
83
96
error: match expression looks like `matches!` macro
84
- --> $DIR/match_expr_like_matches_macro.rs:135 :18
97
+ --> $DIR/match_expr_like_matches_macro.rs:147 :18
85
98
|
86
99
LL | let _z = match &z {
87
100
| __________________^
@@ -91,7 +104,7 @@ LL | | };
91
104
| |_________^ help: try this: `matches!(&z, Some(3))`
92
105
93
106
error: match expression looks like `matches!` macro
94
- --> $DIR/match_expr_like_matches_macro.rs:152 :21
107
+ --> $DIR/match_expr_like_matches_macro.rs:164 :21
95
108
|
96
109
LL | let _ = match &z {
97
110
| _____________________^
@@ -101,7 +114,7 @@ LL | | };
101
114
| |_____________^ help: try this: `matches!(&z, AnEnum::X)`
102
115
103
116
error: match expression looks like `matches!` macro
104
- --> $DIR/match_expr_like_matches_macro.rs:166 :20
117
+ --> $DIR/match_expr_like_matches_macro.rs:178 :20
105
118
|
106
119
LL | let _res = match &val {
107
120
| ____________________^
@@ -111,7 +124,7 @@ LL | | };
111
124
| |_________^ help: try this: `matches!(&val, &Some(ref _a))`
112
125
113
126
error: match expression looks like `matches!` macro
114
- --> $DIR/match_expr_like_matches_macro.rs:178 :20
127
+ --> $DIR/match_expr_like_matches_macro.rs:190 :20
115
128
|
116
129
LL | let _res = match &val {
117
130
| ____________________^
@@ -120,5 +133,5 @@ LL | | _ => false,
120
133
LL | | };
121
134
| |_________^ help: try this: `matches!(&val, &Some(ref _a))`
122
135
123
- error: aborting due to 12 previous errors
136
+ error: aborting due to 13 previous errors
124
137
0 commit comments