You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn main(){let x = 42;match x{0..=73 => {}74..=> {},}}
Current output
error[E0586]: inclusive range with no end
--> src/main.rs:5:11
|
5 | 74..=> {},
| ^^^ help: use `..` instead
|
= note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
error: expected one of `=>`, `if`, or `|`, found `>`
--> src/main.rs:5:14
|
5 | 74..=> {},
| ^ expected one of `=>`, `if`, or `|`
For more information about this error, try `rustc --explain E0586`.
error: could not compile `playground` due to 2 previous errors
Desired output
It should suggest inserting a space:
- 74..=> {},+ 74.. => {},
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
mejrs
added
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jan 28, 2023
After removing the brackets, we still want a group with delimiter None.
Because the `spacing` of the last token of the pattern is passed
through, it can conflict with the following `=` in the expansion and
cause an error like rust-lang/rust#107420
Code
Current output
Desired output
It should suggest inserting a space:
Rationale and extra context
No response
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: