Match ergonomics error message about Rust 2024 future compatibility in Rust 2024 #136456
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2024
Area: The 2024 edition
A-patterns
Relating to patterns and pattern matching
C-bug
Category: This is a bug.
I-edition-triaged
Issue: This issue has been reviewed and triaged by the Edition team.
In Rust 2024, the following error message is emitted:
This message isn't great. The problem isn't really that the behavior may change in Rust 2024, it's that this is simply disallowed (starting in Rust 2024).
We should probably also remove the bit about "implicitly matching against multiple layers of references". If someone is in the Rust 2024 headspace, this isn't necessarily what the person was trying to do in writing this.
cc @Nadrieril @dianne
Tracking:
The text was updated successfully, but these errors were encountered: