Another false positive: match_same_arms
vs. &Any
#1218
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
E-needs-mcve
Call for participation: This issue needs a Minimal Complete and Verifiable Example
I-false-positive
Issue: The lint was triggered on code it shouldn't have
L-correctness
Lint: Belongs in the correctness lint group
T-middle
Type: Probably requires verifiying types
If the two arms do not have the same actual type, pulling them together with
|
will fail. The lint should not trigger if the actual types of the match arms differ.E.g.
Changing it to
will fail with a type error.
The text was updated successfully, but these errors were encountered: