rust/tests/ui/ignored_unit_patterns.stderr

60 lines
1.8 KiB
Plaintext
Raw Normal View History

error: matching over `()` is more explicit
--> tests/ui/ignored_unit_patterns.rs:16:12
|
LL | Ok(_) => {},
| ^ help: use `()` instead of `_`: `()`
|
= note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ignored_unit_patterns)]`
error: matching over `()` is more explicit
--> tests/ui/ignored_unit_patterns.rs:17:13
|
LL | Err(_) => {},
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
--> tests/ui/ignored_unit_patterns.rs:19:15
|
LL | if let Ok(_) = foo() {}
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
--> tests/ui/ignored_unit_patterns.rs:21:28
|
LL | let _ = foo().map_err(|_| todo!());
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
2024-09-22 13:42:10 -05:00
--> tests/ui/ignored_unit_patterns.rs:25:12
|
2024-09-22 13:42:10 -05:00
LL | Ok(_) => {},
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
2024-09-22 13:42:10 -05:00
--> tests/ui/ignored_unit_patterns.rs:27:13
|
2024-09-22 13:42:10 -05:00
LL | Err(_) => {},
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
2024-09-22 13:42:10 -05:00
--> tests/ui/ignored_unit_patterns.rs:38:9
|
LL | let _ = foo().unwrap();
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
2024-09-22 13:42:10 -05:00
--> tests/ui/ignored_unit_patterns.rs:47:13
|
LL | (1, _) => unimplemented!(),
| ^ help: use `()` instead of `_`: `()`
error: matching over `()` is more explicit
2024-09-22 13:42:10 -05:00
--> tests/ui/ignored_unit_patterns.rs:54:13
|
LL | for (x, _) in v {
| ^ help: use `()` instead of `_`: `()`
error: aborting due to 9 previous errors