@@ -60,7 +60,20 @@ LL | | };
6060 | |_________^ help: try this: `matches!(x, E::A(_) | E::B(_))`
6161
6262error: 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
6477 |
6578LL | let _ans = match x {
6679 | ____________________^
@@ -71,7 +84,7 @@ LL | | };
7184 | |_________^ help: try this: `!matches!(x, E::B(_) | E::C)`
7285
7386error: 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
7588 |
7689LL | let _z = match &z {
7790 | __________________^
@@ -81,7 +94,7 @@ LL | | };
8194 | |_________^ help: try this: `matches!(z, Some(3))`
8295
8396error: 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
8598 |
8699LL | let _z = match &z {
87100 | __________________^
@@ -91,7 +104,7 @@ LL | | };
91104 | |_________^ help: try this: `matches!(&z, Some(3))`
92105
93106error: 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
95108 |
96109LL | let _ = match &z {
97110 | _____________________^
@@ -101,7 +114,7 @@ LL | | };
101114 | |_____________^ help: try this: `matches!(&z, AnEnum::X)`
102115
103116error: 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
105118 |
106119LL | let _res = match &val {
107120 | ____________________^
@@ -111,7 +124,7 @@ LL | | };
111124 | |_________^ help: try this: `matches!(&val, &Some(ref _a))`
112125
113126error: 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
115128 |
116129LL | let _res = match &val {
117130 | ____________________^
@@ -120,5 +133,5 @@ LL | | _ => false,
120133LL | | };
121134 | |_________^ help: try this: `matches!(&val, &Some(ref _a))`
122135
123- error: aborting due to 12 previous errors
136+ error: aborting due to 13 previous errors
124137
0 commit comments