suspicious_double_ref_op doesn't give warning in generic context #112364
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
No response
Rationale and extra context
This is exactly situation where
suspicious_double_ref_op
should trigger. But it does not. CC @fee1-deadrustc version:
rustc 1.72.0-nightly (e6d4725c7 2023-06-05)
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: