[arithmetic_side_effects] false positive with string and derefs #14054
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
Summary
Concatenation of a
String
with&str
when the&str
is aString
deref produces a false positive.Lint Name
arithmetic_side_effects
Reproducer
Here's a minimal example that produces the error:
Playground
Version
(also reproduced in Rust playground)
Additional Labels
No response
The text was updated successfully, but these errors were encountered: