const prop missing diagnostic with unrelated changes #101470
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Since rustc 1.61, the following code is not giving a compile-time error:
If I uncomment the last line, the compile-time error shows up.
Is this right? I would expect the compile-time error to show up in both cases (this is what happens for rustc < 1.61).
cc @oli-obk
Originally posted by @paolieri in #48920 (comment)
The text was updated successfully, but these errors were encountered: