mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
27a701a670
formatting :/
29 lines
1 KiB
Text
29 lines
1 KiB
Text
error: this match arm has an identical body to the `_` wildcard arm
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:41:9
|
|
|
|
|
LL | Ordering::AcqRel | Ordering::SeqCst => panic!(),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the arm
|
|
|
|
|
= help: or try changing either arm body
|
|
note: `_` wildcard arm here
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:42:9
|
|
|
|
|
LL | _ => panic!(),
|
|
| ^^^^^^^^^^^^^
|
|
= note: `-D clippy::match-same-arms` implied by `-D warnings`
|
|
|
|
error: this match arm has an identical body to the `_` wildcard arm
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:54:13
|
|
|
|
|
LL | Ordering::AcqRel | Ordering::SeqCst => panic!(),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the arm
|
|
|
|
|
= help: or try changing either arm body
|
|
note: `_` wildcard arm here
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:55:13
|
|
|
|
|
LL | _ => panic!(),
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|