-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.D-newcomer-roadblockDiagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: Confusing error or lint; hard to understand for new users.
Description
I tried this code:
- Playground Link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=053c3012c504c1cd85a98ff5feeeceab
I expected to see this happen:
- Either successful assignment or a compiler error, I actually would prefer the first but I'm not sure the intended behavior either way.
Instead, this happened:
- Compile succeeds without warning, the value doesn't change.
Meta
Occurs in Stable, Beta, and Nightly builds on the playground.
No backtrace is emitted
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.D-newcomer-roadblockDiagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: Confusing error or lint; hard to understand for new users.