-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
..i32::MIN pattern gives error mentioning "lower range bound" #149165
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-patternsRelating to patterns and pattern matchingRelating to patterns and pattern matchingT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-patternsRelating to patterns and pattern matchingRelating to patterns and pattern matchingT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
Current output
Desired output
Rationale and extra context
The error refers to a nonexistent "lower range bound".
This error also occurs with
f64::NEG_INFINITYand'\0'While we're at it, it would be nice if the error clearly said that this prohibition applies only to range patterns, not range expressions.
Other cases
Rust Version
Anything else?
No response