mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
error: this match arm has an identical body to the `_` wildcard arm
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:44:9
|
|
|
|
|
LL | / Ordering::AcqRel | Ordering::SeqCst => repeat(),
|
|
LL | |
|
|
| |________^ help: try removing the arm
|
|
|
|
|
= help: or try changing either arm body
|
|
note: `_` wildcard arm here
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:46: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
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:58:13
|
|
|
|
|
LL | / Ordering::AcqRel | Ordering::SeqCst => repeat(),
|
|
LL | |
|
|
| |____________^ help: try removing the arm
|
|
|
|
|
= help: or try changing either arm body
|
|
note: `_` wildcard arm here
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:60:13
|
|
|
|
|
LL | _ => repeat(),
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|