1
1
error: this match arm has an identical body to the `_` wildcard arm
2
- --> $DIR/match_same_arms.rs:11 :9
2
+ --> $DIR/match_same_arms.rs:42 :9
3
3
|
4
4
LL | Abc::A => 0,
5
5
| ^^^^^^^^^^^ help: try removing the arm
6
6
|
7
7
= help: or try changing either arm body
8
8
note: `_` wildcard arm here
9
- --> $DIR/match_same_arms.rs:13 :9
9
+ --> $DIR/match_same_arms.rs:44 :9
10
10
|
11
11
LL | _ => 0, //~ ERROR match arms have same body
12
12
| ^^^^^^
13
13
= note: `-D clippy::match-same-arms` implied by `-D warnings`
14
14
15
15
error: this match arm has an identical body to another arm
16
- --> $DIR/match_same_arms.rs:17 :9
16
+ --> $DIR/match_same_arms.rs:48 :9
17
17
|
18
18
LL | (1, .., 3) => 42,
19
19
| ----------^^^^^^
@@ -22,13 +22,13 @@ LL | (1, .., 3) => 42,
22
22
|
23
23
= help: or try changing either arm body
24
24
note: other arm here
25
- --> $DIR/match_same_arms.rs:18 :9
25
+ --> $DIR/match_same_arms.rs:49 :9
26
26
|
27
27
LL | (.., 3) => 42, //~ ERROR match arms have same body
28
28
| ^^^^^^^^^^^^^
29
29
30
30
error: this match arm has an identical body to another arm
31
- --> $DIR/match_same_arms.rs:24 :9
31
+ --> $DIR/match_same_arms.rs:55 :9
32
32
|
33
33
LL | 51 => 1, //~ ERROR match arms have same body
34
34
| --^^^^^
@@ -37,13 +37,13 @@ LL | 51 => 1, //~ ERROR match arms have same body
37
37
|
38
38
= help: or try changing either arm body
39
39
note: other arm here
40
- --> $DIR/match_same_arms.rs:23 :9
40
+ --> $DIR/match_same_arms.rs:54 :9
41
41
|
42
42
LL | 42 => 1,
43
43
| ^^^^^^^
44
44
45
45
error: this match arm has an identical body to another arm
46
- --> $DIR/match_same_arms.rs:25 :9
46
+ --> $DIR/match_same_arms.rs:56 :9
47
47
|
48
48
LL | 41 => 2,
49
49
| --^^^^^
@@ -52,13 +52,13 @@ LL | 41 => 2,
52
52
|
53
53
= help: or try changing either arm body
54
54
note: other arm here
55
- --> $DIR/match_same_arms.rs:26 :9
55
+ --> $DIR/match_same_arms.rs:57 :9
56
56
|
57
57
LL | 52 => 2, //~ ERROR match arms have same body
58
58
| ^^^^^^^
59
59
60
60
error: this match arm has an identical body to another arm
61
- --> $DIR/match_same_arms.rs:32 :9
61
+ --> $DIR/match_same_arms.rs:63 :9
62
62
|
63
63
LL | 2 => 2, //~ ERROR 2nd matched arms have same body
64
64
| -^^^^^
@@ -67,13 +67,13 @@ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
67
67
|
68
68
= help: or try changing either arm body
69
69
note: other arm here
70
- --> $DIR/match_same_arms.rs:31 :9
70
+ --> $DIR/match_same_arms.rs:62 :9
71
71
|
72
72
LL | 1 => 2,
73
73
| ^^^^^^
74
74
75
75
error: this match arm has an identical body to another arm
76
- --> $DIR/match_same_arms.rs:33 :9
76
+ --> $DIR/match_same_arms.rs:64 :9
77
77
|
78
78
LL | 3 => 2, //~ ERROR 3rd matched arms have same body
79
79
| -^^^^^
@@ -82,13 +82,13 @@ LL | 3 => 2, //~ ERROR 3rd matched arms have same body
82
82
|
83
83
= help: or try changing either arm body
84
84
note: other arm here
85
- --> $DIR/match_same_arms.rs:31 :9
85
+ --> $DIR/match_same_arms.rs:62 :9
86
86
|
87
87
LL | 1 => 2,
88
88
| ^^^^^^
89
89
90
90
error: this match arm has an identical body to another arm
91
- --> $DIR/match_same_arms.rs:32 :9
91
+ --> $DIR/match_same_arms.rs:63 :9
92
92
|
93
93
LL | 2 => 2, //~ ERROR 2nd matched arms have same body
94
94
| -^^^^^
@@ -97,13 +97,13 @@ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
97
97
|
98
98
= help: or try changing either arm body
99
99
note: other arm here
100
- --> $DIR/match_same_arms.rs:33 :9
100
+ --> $DIR/match_same_arms.rs:64 :9
101
101
|
102
102
LL | 3 => 2, //~ ERROR 3rd matched arms have same body
103
103
| ^^^^^^
104
104
105
105
error: this match arm has an identical body to another arm
106
- --> $DIR/match_same_arms.rs:50 :17
106
+ --> $DIR/match_same_arms.rs:81 :17
107
107
|
108
108
LL | CommandInfo::External { name, .. } => name.to_string(),
109
109
| ----------------------------------^^^^^^^^^^^^^^^^^^^^
@@ -112,7 +112,7 @@ LL | CommandInfo::External { name, .. } => name.to_string(),
112
112
|
113
113
= help: or try changing either arm body
114
114
note: other arm here
115
- --> $DIR/match_same_arms.rs:49 :17
115
+ --> $DIR/match_same_arms.rs:80 :17
116
116
|
117
117
LL | CommandInfo::BuiltIn { name, .. } => name.to_string(),
118
118
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments