2023-07-02 12:35:19 +00:00
|
|
|
error: this match arm has an identical body to the `_` wildcard arm
|
2024-05-13 10:29:41 +00:00
|
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:44:9
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
2024-05-13 10:29:41 +00:00
|
|
|
LL | / Ordering::AcqRel | Ordering::SeqCst => repeat(),
|
|
|
|
LL | |
|
|
|
|
| |________^ help: try removing the arm
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
= help: or try changing either arm body
|
|
|
|
note: `_` wildcard arm here
|
2024-05-13 10:29:41 +00:00
|
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:46:9
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
2023-09-03 04:31:56 +00:00
|
|
|
LL | _ => repeat(),
|
2023-07-02 12:35:19 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
= note: `-D clippy::match-same-arms` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::match_same_arms)]`
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
error: this match arm has an identical body to the `_` wildcard arm
|
2024-05-13 10:29:41 +00:00
|
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:58:13
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
2024-05-13 10:29:41 +00:00
|
|
|
LL | / Ordering::AcqRel | Ordering::SeqCst => repeat(),
|
|
|
|
LL | |
|
|
|
|
| |____________^ help: try removing the arm
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
|
= help: or try changing either arm body
|
|
|
|
note: `_` wildcard arm here
|
2024-05-13 10:29:41 +00:00
|
|
|
--> tests/ui/match_same_arms_non_exhaustive.rs:60:13
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
2023-09-03 04:31:56 +00:00
|
|
|
LL | _ => repeat(),
|
2023-07-02 12:35:19 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|