mut_mut suggests invalid code #9035
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
Clippy suggests to re-borrow a struct field which leads to invalid code. The field is of type
&mut dyn …
Lint Name
mut_mut
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
The reborrowing
let hlp = &mut *self.inner;
doesn't compile:Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: