- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsP-lowLow priorityLow priorityT-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.
Description
We currently emit:
error[E0029]: only char and numeric types are allowed in range patterns
 --> src/main.rs:4:12
  |
4 |         0.."" => {}
  |            ^^ ranges require char or numeric types
  |
  = note: start type: {integer}
  = note: end type: &'static str
But it should be closer to:
error[E0029]: only char and numeric types are allowed in range patterns
 --> src/main.rs:4:12
  |
4 |         0.."" => {}
  |         -  ^^ this is of type `&'static str` but it should be `char` or numeric
  |         |
  |         this is of type `{integer}`
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsP-lowLow priorityLow priorityT-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.