False positive in match_same_arms + non_exhaustive_omitted_patterns #10327
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
Summary
Clippy's suggestion makes the code not compile when
non_exhaustive_omitted_patterns
is in use.Lint Name
match_same_arms
Reproducer
The original code compiles. Clippy's suggested code (remove line 11) does not compile.
Version
Additional Labels
@rustbot label +I-suggestion-causes-error
The text was updated successfully, but these errors were encountered: