mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
error: `Err(_)` matches all errors
|
|
--> tests/ui/match_wild_err_arm.rs:23:9
|
|
|
|
|
LL | Err(_) => panic!("err"),
|
|
| ^^^^^^
|
|
|
|
|
= note: match each error separately or use the error output, or use `.expect(msg)` if the error case is unreachable
|
|
= note: `-D clippy::match-wild-err-arm` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::match_wild_err_arm)]`
|
|
|
|
error: `Err(_)` matches all errors
|
|
--> tests/ui/match_wild_err_arm.rs:31:9
|
|
|
|
|
LL | Err(_) => panic!(),
|
|
| ^^^^^^
|
|
|
|
|
= note: match each error separately or use the error output, or use `.expect(msg)` if the error case is unreachable
|
|
|
|
error: `Err(_)` matches all errors
|
|
--> tests/ui/match_wild_err_arm.rs:39:9
|
|
|
|
|
LL | Err(_) => {
|
|
| ^^^^^^
|
|
|
|
|
= note: match each error separately or use the error output, or use `.expect(msg)` if the error case is unreachable
|
|
|
|
error: `Err(_e)` matches all errors
|
|
--> tests/ui/match_wild_err_arm.rs:49:9
|
|
|
|
|
LL | Err(_e) => panic!(),
|
|
| ^^^^^^^
|
|
|
|
|
= note: match each error separately or use the error output, or use `.expect(msg)` if the error case is unreachable
|
|
|
|
error: aborting due to 4 previous errors
|
|
|