1 error: `Err(_)` will match all errors, maybe not a good idea
2 --> $DIR/matches.rs:14:9
4 LL | Err(_) => panic!("err"),
7 = note: `-D clippy::match-wild-err-arm` implied by `-D warnings`
8 = note: to remove this warning, match each error separately or use `unreachable!` macro
10 error: this `match` has identical arm bodies
11 --> $DIR/matches.rs:13:18
13 LL | Ok(_) => println!("ok"),
16 = note: `-D clippy::match-same-arms` implied by `-D warnings`
18 --> $DIR/matches.rs:12:18
20 LL | Ok(3) => println!("ok"),
22 help: consider refactoring into `Ok(3) | Ok(_)`
23 --> $DIR/matches.rs:12:9
25 LL | Ok(3) => println!("ok"),
27 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
29 error: `Err(_)` will match all errors, maybe not a good idea
30 --> $DIR/matches.rs:20:9
32 LL | Err(_) => panic!(),
35 = note: to remove this warning, match each error separately or use `unreachable!` macro
37 error: this `match` has identical arm bodies
38 --> $DIR/matches.rs:19:18
40 LL | Ok(_) => println!("ok"),
44 --> $DIR/matches.rs:18:18
46 LL | Ok(3) => println!("ok"),
48 help: consider refactoring into `Ok(3) | Ok(_)`
49 --> $DIR/matches.rs:18:9
51 LL | Ok(3) => println!("ok"),
53 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
55 error: `Err(_)` will match all errors, maybe not a good idea
56 --> $DIR/matches.rs:26:9
61 = note: to remove this warning, match each error separately or use `unreachable!` macro
63 error: this `match` has identical arm bodies
64 --> $DIR/matches.rs:25:18
66 LL | Ok(_) => println!("ok"),
70 --> $DIR/matches.rs:24:18
72 LL | Ok(3) => println!("ok"),
74 help: consider refactoring into `Ok(3) | Ok(_)`
75 --> $DIR/matches.rs:24:9
77 LL | Ok(3) => println!("ok"),
79 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
81 error: `Err(_)` will match all errors, maybe not a good idea
82 --> $DIR/matches.rs:34:9
84 LL | Err(_e) => panic!(),
87 = note: to remove this warning, match each error separately or use `unreachable!` macro
89 error: this `match` has identical arm bodies
90 --> $DIR/matches.rs:33:18
92 LL | Ok(_) => println!("ok"),
96 --> $DIR/matches.rs:32:18
98 LL | Ok(3) => println!("ok"),
100 help: consider refactoring into `Ok(3) | Ok(_)`
101 --> $DIR/matches.rs:32:9
103 LL | Ok(3) => println!("ok"),
105 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
107 error: this `match` has identical arm bodies
108 --> $DIR/matches.rs:40:18
110 LL | Ok(_) => println!("ok"),
114 --> $DIR/matches.rs:39:18
116 LL | Ok(3) => println!("ok"),
118 help: consider refactoring into `Ok(3) | Ok(_)`
119 --> $DIR/matches.rs:39:9
121 LL | Ok(3) => println!("ok"),
123 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
125 error: this `match` has identical arm bodies
126 --> $DIR/matches.rs:47:18
128 LL | Ok(_) => println!("ok"),
132 --> $DIR/matches.rs:46:18
134 LL | Ok(3) => println!("ok"),
136 help: consider refactoring into `Ok(3) | Ok(_)`
137 --> $DIR/matches.rs:46:9
139 LL | Ok(3) => println!("ok"),
141 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
143 error: this `match` has identical arm bodies
144 --> $DIR/matches.rs:54:18
146 LL | Ok(_) => println!("ok"),
150 --> $DIR/matches.rs:53:18
152 LL | Ok(3) => println!("ok"),
154 help: consider refactoring into `Ok(3) | Ok(_)`
155 --> $DIR/matches.rs:53:9
157 LL | Ok(3) => println!("ok"),
159 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
161 error: this `match` has identical arm bodies
162 --> $DIR/matches.rs:60:18
164 LL | Ok(_) => println!("ok"),
168 --> $DIR/matches.rs:59:18
170 LL | Ok(3) => println!("ok"),
172 help: consider refactoring into `Ok(3) | Ok(_)`
173 --> $DIR/matches.rs:59:9
175 LL | Ok(3) => println!("ok"),
177 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
179 error: this `match` has identical arm bodies
180 --> $DIR/matches.rs:66:18
182 LL | Ok(_) => println!("ok"),
186 --> $DIR/matches.rs:65:18
188 LL | Ok(3) => println!("ok"),
190 help: consider refactoring into `Ok(3) | Ok(_)`
191 --> $DIR/matches.rs:65:9
193 LL | Ok(3) => println!("ok"),
195 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
197 error: this `match` has identical arm bodies
198 --> $DIR/matches.rs:89:29
200 LL | (Ok(_), Some(x)) => println!("ok {}", x),
201 | ^^^^^^^^^^^^^^^^^^^^
204 --> $DIR/matches.rs:88:29
206 LL | (Ok(x), Some(_)) => println!("ok {}", x),
207 | ^^^^^^^^^^^^^^^^^^^^
208 help: consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
209 --> $DIR/matches.rs:88:9
211 LL | (Ok(x), Some(_)) => println!("ok {}", x),
213 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
215 error: this `match` has identical arm bodies
216 --> $DIR/matches.rs:104:18
218 LL | Ok(_) => println!("ok"),
222 --> $DIR/matches.rs:103:18
224 LL | Ok(3) => println!("ok"),
226 help: consider refactoring into `Ok(3) | Ok(_)`
227 --> $DIR/matches.rs:103:9
229 LL | Ok(3) => println!("ok"),
231 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
233 error: aborting due to 15 previous errors