Borrowing an overflowing expression supresses arithmetic_overflow
#104578
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-arithmetic_overflow
Lint: arithmetic_overflow
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is possibly related to #98444
I tried this code:
I expected to see this happen:
Instead, this happened: No diagnostic
Meta
Tested on the playground 1.65 and nightly 2022-11-17
The text was updated successfully, but these errors were encountered: