mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
error: this match arm has an identical body to the `_` wildcard arm
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:45:9
|
|
|
|
|
LL | Ordering::AcqRel | Ordering::SeqCst => repeat(),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the arm
|
|
|
|
|
= help: or try changing either arm body
|
|
note: `_` wildcard arm here
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:47:9
|
|
|
|
|
LL | _ => repeat(),
|
|
| ^^^^^^^^^^^^^
|
|
= note: `-D clippy::match-same-arms` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::match_same_arms)]`
|
|
|
|
error: this match arm has an identical body to the `_` wildcard arm
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:59:13
|
|
|
|
|
LL | Ordering::AcqRel | Ordering::SeqCst => repeat(),
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the arm
|
|
|
|
|
= help: or try changing either arm body
|
|
note: `_` wildcard arm here
|
|
--> $DIR/match_same_arms_non_exhaustive.rs:61:13
|
|
|
|
|
LL | _ => repeat(),
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|