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