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: this `match` has identical arm bodies
82 --> $DIR/matches.rs:34:18
84 LL | Ok(_) => println!("ok"),
88 --> $DIR/matches.rs:33:18
90 LL | Ok(3) => println!("ok"),
92 help: consider refactoring into `Ok(3) | Ok(_)`
93 --> $DIR/matches.rs:33:9
95 LL | Ok(3) => println!("ok"),
97 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
99 error: this `match` has identical arm bodies
100 --> $DIR/matches.rs:41:18
102 LL | Ok(_) => println!("ok"),
106 --> $DIR/matches.rs:40:18
108 LL | Ok(3) => println!("ok"),
110 help: consider refactoring into `Ok(3) | Ok(_)`
111 --> $DIR/matches.rs:40:9
113 LL | Ok(3) => println!("ok"),
115 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
117 error: this `match` has identical arm bodies
118 --> $DIR/matches.rs:47:18
120 LL | Ok(_) => println!("ok"),
124 --> $DIR/matches.rs:46:18
126 LL | Ok(3) => println!("ok"),
128 help: consider refactoring into `Ok(3) | Ok(_)`
129 --> $DIR/matches.rs:46:9
131 LL | Ok(3) => println!("ok"),
133 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
135 error: this `match` has identical arm bodies
136 --> $DIR/matches.rs:53:18
138 LL | Ok(_) => println!("ok"),
142 --> $DIR/matches.rs:52:18
144 LL | Ok(3) => println!("ok"),
146 help: consider refactoring into `Ok(3) | Ok(_)`
147 --> $DIR/matches.rs:52:9
149 LL | Ok(3) => println!("ok"),
151 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
153 error: this `match` has identical arm bodies
154 --> $DIR/matches.rs:76:29
156 LL | (Ok(_), Some(x)) => println!("ok {}", x),
157 | ^^^^^^^^^^^^^^^^^^^^
160 --> $DIR/matches.rs:75:29
162 LL | (Ok(x), Some(_)) => println!("ok {}", x),
163 | ^^^^^^^^^^^^^^^^^^^^
164 help: consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
165 --> $DIR/matches.rs:75:9
167 LL | (Ok(x), Some(_)) => println!("ok {}", x),
169 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
171 error: this `match` has identical arm bodies
172 --> $DIR/matches.rs:91:18
174 LL | Ok(_) => println!("ok"),
178 --> $DIR/matches.rs:90:18
180 LL | Ok(3) => println!("ok"),
182 help: consider refactoring into `Ok(3) | Ok(_)`
183 --> $DIR/matches.rs:90:9
185 LL | Ok(3) => println!("ok"),
187 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
189 error: aborting due to 12 previous errors