11error: 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
33 |
44LL | / match (a, b, c) {
55LL | | (x, y, z) => {
1818 |
1919
2020error: 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
2222 |
2323LL | / match (a, b, c) {
2424LL | | (x, y, z) => println!("{} {} {}", x, y, z),
@@ -32,15 +32,15 @@ LL | println!("{} {} {}", x, y, z);
3232 |
3333
3434error: 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
3636 |
3737LL | / match a {
3838LL | | _ => println!("whatever"),
3939LL | | }
4040 | |_____^ help: consider using the match body instead: `println!("whatever");`
4141
4242error: 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
4444 |
4545LL | / match a {
4646LL | | _ => {
5959 |
6060
6161error: 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
6363 |
6464LL | / match a {
6565LL | | _ => {
8181 |
8282
8383error: 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
8585 |
8686LL | / match p {
8787LL | | Point { x, y } => println!("Coords: ({}, {})", x, y),
@@ -95,7 +95,7 @@ LL | println!("Coords: ({}, {})", x, y);
9595 |
9696
9797error: 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
9999 |
100100LL | / match p {
101101LL | | Point { x: x1, y: y1 } => println!("Coords: ({}, {})", x1, y1),
@@ -109,7 +109,7 @@ LL | println!("Coords: ({}, {})", x1, y1);
109109 |
110110
111111error: 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
113113 |
114114LL | / match x {
115115LL | | ref r => println!("Got a reference to {}", r),
@@ -123,7 +123,7 @@ LL | println!("Got a reference to {}", r);
123123 |
124124
125125error: 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
127127 |
128128LL | / match x {
129129LL | | ref mut mr => println!("Got a mutable reference to {}", mr),
@@ -137,7 +137,7 @@ LL | println!("Got a mutable reference to {}", mr);
137137 |
138138
139139error: 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
141141 |
142142LL | / let product = match coords() {
143143LL | | Point { x, y } => x * y,
@@ -151,7 +151,7 @@ LL | let product = x * y;
151151 |
152152
153153error: 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
155155 |
156156LL | .map(|i| match i.unwrap() {
157157 | __________________^
0 commit comments