1
1
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
2
- --> $DIR/single_match_else.rs:17 :13
2
+ --> $DIR/single_match_else.rs:18 :13
3
3
|
4
4
LL | let _ = match ExprNode::Butterflies {
5
5
| _____________^
@@ -21,7 +21,7 @@ LL ~ };
21
21
|
22
22
23
23
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
24
- --> $DIR/single_match_else.rs:82 :5
24
+ --> $DIR/single_match_else.rs:83 :5
25
25
|
26
26
LL | / match Some(1) {
27
27
LL | | Some(a) => println!("${:?}", a),
41
41
|
42
42
43
43
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
44
- --> $DIR/single_match_else.rs:91 :5
44
+ --> $DIR/single_match_else.rs:92 :5
45
45
|
46
46
LL | / match Some(1) {
47
47
LL | | Some(a) => println!("${:?}", a),
61
61
|
62
62
63
63
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
64
- --> $DIR/single_match_else.rs:101 :5
64
+ --> $DIR/single_match_else.rs:102 :5
65
65
|
66
66
LL | / match Result::<i32, Infallible>::Ok(1) {
67
67
LL | | Ok(a) => println!("${:?}", a),
81
81
|
82
82
83
83
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
84
- --> $DIR/single_match_else.rs:110 :5
84
+ --> $DIR/single_match_else.rs:111 :5
85
85
|
86
86
LL | / match Cow::from("moo") {
87
87
LL | | Cow::Owned(a) => println!("${:?}", a),
@@ -101,7 +101,7 @@ LL + }
101
101
|
102
102
103
103
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
104
- --> $DIR/single_match_else.rs:120 :5
104
+ --> $DIR/single_match_else.rs:121 :5
105
105
|
106
106
LL | / match bar {
107
107
LL | | Some(v) => unsafe {
@@ -124,7 +124,7 @@ LL + }
124
124
|
125
125
126
126
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
127
- --> $DIR/single_match_else.rs:131 :5
127
+ --> $DIR/single_match_else.rs:132 :5
128
128
|
129
129
LL | / match bar {
130
130
LL | | Some(v) => {
@@ -148,7 +148,7 @@ LL + } }
148
148
|
149
149
150
150
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
151
- --> $DIR/single_match_else.rs:143 :5
151
+ --> $DIR/single_match_else.rs:144 :5
152
152
|
153
153
LL | / match bar {
154
154
LL | | Some(v) => unsafe {
@@ -172,7 +172,7 @@ LL + } }
172
172
|
173
173
174
174
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
175
- --> $DIR/single_match_else.rs:155 :5
175
+ --> $DIR/single_match_else.rs:156 :5
176
176
|
177
177
LL | / match bar {
178
178
LL | | #[rustfmt::skip]
0 commit comments