2023-08-11 07:05:13 -05:00
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:16:12
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | Ok(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::ignored_unit_patterns)]`
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:17:13
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | Err(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:19:15
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = foo() {}
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:21:28
|
2023-08-11 07:05:13 -05:00
|
|
|
|
|
|
|
|
LL | let _ = foo().map_err(|_| todo!());
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
2023-09-12 11:13:53 -05:00
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:27:16
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | Ok(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:29:17
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | Err(_) => {},
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:41:9
|
2023-09-12 11:13:53 -05:00
|
|
|
|
|
|
|
|
LL | let _ = foo().unwrap();
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
2023-11-02 11:35:56 -05:00
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:50:13
|
2023-11-02 11:35:56 -05:00
|
|
|
|
|
|
|
|
LL | (1, _) => unimplemented!(),
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: matching over `()` is more explicit
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/ignored_unit_patterns.rs:57:13
|
2023-11-02 11:35:56 -05:00
|
|
|
|
|
|
|
|
LL | for (x, _) in v {
|
|
|
|
| ^ help: use `()` instead of `_`: `()`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2023-08-11 07:05:13 -05:00
|
|
|
|