Const RangeInclusive<T> used within match case raises error E0308 #105576
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-patterns
Relating to patterns and pattern matching
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: MEMORY_RANGE to compile without error.
Instead, this happened: MEMORY_RANGE as a case within the match raises a compiler error
error[E0308]: mismatched types
.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: