1
1
error: this match could be written as a `let` statement
2
- --> $DIR/match_single_binding.rs:20 :5
2
+ --> $DIR/match_single_binding.rs:28 :5
3
3
|
4
4
LL | / match (a, b, c) {
5
5
LL | | (x, y, z) => {
18
18
|
19
19
20
20
error: this match could be written as a `let` statement
21
- --> $DIR/match_single_binding.rs:26 :5
21
+ --> $DIR/match_single_binding.rs:34 :5
22
22
|
23
23
LL | / match (a, b, c) {
24
24
LL | | (x, y, z) => println!("{} {} {}", x, y, z),
@@ -32,15 +32,15 @@ LL | println!("{} {} {}", x, y, z);
32
32
|
33
33
34
34
error: this match could be replaced by its body itself
35
- --> $DIR/match_single_binding.rs:41 :5
35
+ --> $DIR/match_single_binding.rs:51 :5
36
36
|
37
37
LL | / match a {
38
38
LL | | _ => println!("whatever"),
39
39
LL | | }
40
40
| |_____^ help: consider using the match body instead: `println!("whatever");`
41
41
42
42
error: this match could be replaced by its body itself
43
- --> $DIR/match_single_binding.rs:45 :5
43
+ --> $DIR/match_single_binding.rs:55 :5
44
44
|
45
45
LL | / match a {
46
46
LL | | _ => {
59
59
|
60
60
61
61
error: this match could be replaced by its body itself
62
- --> $DIR/match_single_binding.rs:52 :5
62
+ --> $DIR/match_single_binding.rs:62 :5
63
63
|
64
64
LL | / match a {
65
65
LL | | _ => {
81
81
|
82
82
83
83
error: this match could be written as a `let` statement
84
- --> $DIR/match_single_binding.rs:62 :5
84
+ --> $DIR/match_single_binding.rs:72 :5
85
85
|
86
86
LL | / match p {
87
87
LL | | Point { x, y } => println!("Coords: ({}, {})", x, y),
@@ -95,7 +95,7 @@ LL | println!("Coords: ({}, {})", x, y);
95
95
|
96
96
97
97
error: this match could be written as a `let` statement
98
- --> $DIR/match_single_binding.rs:66 :5
98
+ --> $DIR/match_single_binding.rs:76 :5
99
99
|
100
100
LL | / match p {
101
101
LL | | Point { x: x1, y: y1 } => println!("Coords: ({}, {})", x1, y1),
@@ -109,7 +109,7 @@ LL | println!("Coords: ({}, {})", x1, y1);
109
109
|
110
110
111
111
error: this match could be written as a `let` statement
112
- --> $DIR/match_single_binding.rs:71 :5
112
+ --> $DIR/match_single_binding.rs:81 :5
113
113
|
114
114
LL | / match x {
115
115
LL | | ref r => println!("Got a reference to {}", r),
@@ -123,7 +123,7 @@ LL | println!("Got a reference to {}", r);
123
123
|
124
124
125
125
error: this match could be written as a `let` statement
126
- --> $DIR/match_single_binding.rs:76 :5
126
+ --> $DIR/match_single_binding.rs:86 :5
127
127
|
128
128
LL | / match x {
129
129
LL | | ref mut mr => println!("Got a mutable reference to {}", mr),
@@ -137,7 +137,7 @@ LL | println!("Got a mutable reference to {}", mr);
137
137
|
138
138
139
139
error: this match could be written as a `let` statement
140
- --> $DIR/match_single_binding.rs:80 :5
140
+ --> $DIR/match_single_binding.rs:90 :5
141
141
|
142
142
LL | / let product = match coords() {
143
143
LL | | Point { x, y } => x * y,
@@ -151,7 +151,7 @@ LL | let product = x * y;
151
151
|
152
152
153
153
error: this match could be written as a `let` statement
154
- --> $DIR/match_single_binding.rs:88 :18
154
+ --> $DIR/match_single_binding.rs:98 :18
155
155
|
156
156
LL | .map(|i| match i.unwrap() {
157
157
| __________________^
0 commit comments