]> git.lizzy.rs Git - rust.git/blob - tests/ui/matches.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / matches.stderr
1 error: Err(_) will match all errors, maybe not a good idea
2   --> $DIR/matches.rs:14:9
3    |
4 LL |         Err(_) => panic!("err"),
5    |         ^^^^^^
6    |
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
9
10 error: this `match` has identical arm bodies
11   --> $DIR/matches.rs:13:18
12    |
13 LL |         Ok(_) => println!("ok"),
14    |                  ^^^^^^^^^^^^^^
15    |
16    = note: `-D clippy::match-same-arms` implied by `-D warnings`
17 note: same as this
18   --> $DIR/matches.rs:12:18
19    |
20 LL |         Ok(3) => println!("ok"),
21    |                  ^^^^^^^^^^^^^^
22 help: consider refactoring into `Ok(3) | Ok(_)`
23   --> $DIR/matches.rs:12:9
24    |
25 LL |         Ok(3) => println!("ok"),
26    |         ^^^^^
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)
28
29 error: Err(_) will match all errors, maybe not a good idea
30   --> $DIR/matches.rs:20:9
31    |
32 LL |         Err(_) => panic!(),
33    |         ^^^^^^
34    |
35    = note: to remove this warning, match each error separately or use unreachable macro
36
37 error: this `match` has identical arm bodies
38   --> $DIR/matches.rs:19:18
39    |
40 LL |         Ok(_) => println!("ok"),
41    |                  ^^^^^^^^^^^^^^
42    |
43 note: same as this
44   --> $DIR/matches.rs:18:18
45    |
46 LL |         Ok(3) => println!("ok"),
47    |                  ^^^^^^^^^^^^^^
48 help: consider refactoring into `Ok(3) | Ok(_)`
49   --> $DIR/matches.rs:18:9
50    |
51 LL |         Ok(3) => println!("ok"),
52    |         ^^^^^
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)
54
55 error: Err(_) will match all errors, maybe not a good idea
56   --> $DIR/matches.rs:26:9
57    |
58 LL |         Err(_) => {
59    |         ^^^^^^
60    |
61    = note: to remove this warning, match each error separately or use unreachable macro
62
63 error: this `match` has identical arm bodies
64   --> $DIR/matches.rs:25:18
65    |
66 LL |         Ok(_) => println!("ok"),
67    |                  ^^^^^^^^^^^^^^
68    |
69 note: same as this
70   --> $DIR/matches.rs:24:18
71    |
72 LL |         Ok(3) => println!("ok"),
73    |                  ^^^^^^^^^^^^^^
74 help: consider refactoring into `Ok(3) | Ok(_)`
75   --> $DIR/matches.rs:24:9
76    |
77 LL |         Ok(3) => println!("ok"),
78    |         ^^^^^
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)
80
81 error: this `match` has identical arm bodies
82   --> $DIR/matches.rs:34:18
83    |
84 LL |         Ok(_) => println!("ok"),
85    |                  ^^^^^^^^^^^^^^
86    |
87 note: same as this
88   --> $DIR/matches.rs:33:18
89    |
90 LL |         Ok(3) => println!("ok"),
91    |                  ^^^^^^^^^^^^^^
92 help: consider refactoring into `Ok(3) | Ok(_)`
93   --> $DIR/matches.rs:33:9
94    |
95 LL |         Ok(3) => println!("ok"),
96    |         ^^^^^
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)
98
99 error: this `match` has identical arm bodies
100   --> $DIR/matches.rs:41:18
101    |
102 LL |         Ok(_) => println!("ok"),
103    |                  ^^^^^^^^^^^^^^
104    |
105 note: same as this
106   --> $DIR/matches.rs:40:18
107    |
108 LL |         Ok(3) => println!("ok"),
109    |                  ^^^^^^^^^^^^^^
110 help: consider refactoring into `Ok(3) | Ok(_)`
111   --> $DIR/matches.rs:40:9
112    |
113 LL |         Ok(3) => println!("ok"),
114    |         ^^^^^
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)
116
117 error: this `match` has identical arm bodies
118   --> $DIR/matches.rs:47:18
119    |
120 LL |         Ok(_) => println!("ok"),
121    |                  ^^^^^^^^^^^^^^
122    |
123 note: same as this
124   --> $DIR/matches.rs:46:18
125    |
126 LL |         Ok(3) => println!("ok"),
127    |                  ^^^^^^^^^^^^^^
128 help: consider refactoring into `Ok(3) | Ok(_)`
129   --> $DIR/matches.rs:46:9
130    |
131 LL |         Ok(3) => println!("ok"),
132    |         ^^^^^
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)
134
135 error: this `match` has identical arm bodies
136   --> $DIR/matches.rs:53:18
137    |
138 LL |         Ok(_) => println!("ok"),
139    |                  ^^^^^^^^^^^^^^
140    |
141 note: same as this
142   --> $DIR/matches.rs:52:18
143    |
144 LL |         Ok(3) => println!("ok"),
145    |                  ^^^^^^^^^^^^^^
146 help: consider refactoring into `Ok(3) | Ok(_)`
147   --> $DIR/matches.rs:52:9
148    |
149 LL |         Ok(3) => println!("ok"),
150    |         ^^^^^
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)
152
153 error: this `match` has identical arm bodies
154   --> $DIR/matches.rs:76:29
155    |
156 LL |         (Ok(_), Some(x)) => println!("ok {}", x),
157    |                             ^^^^^^^^^^^^^^^^^^^^
158    |
159 note: same as this
160   --> $DIR/matches.rs:75:29
161    |
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
166    |
167 LL |         (Ok(x), Some(_)) => println!("ok {}", x),
168    |         ^^^^^^^^^^^^^^^^
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)
170
171 error: this `match` has identical arm bodies
172   --> $DIR/matches.rs:91:18
173    |
174 LL |         Ok(_) => println!("ok"),
175    |                  ^^^^^^^^^^^^^^
176    |
177 note: same as this
178   --> $DIR/matches.rs:90:18
179    |
180 LL |         Ok(3) => println!("ok"),
181    |                  ^^^^^^^^^^^^^^
182 help: consider refactoring into `Ok(3) | Ok(_)`
183   --> $DIR/matches.rs:90:9
184    |
185 LL |         Ok(3) => println!("ok"),
186    |         ^^^^^
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)
188
189 error: aborting due to 12 previous errors
190