Provide missing comma in match arm suggestion
When finding:
```rust
match &Some(3) {
&None => 1
&Some(2) => { 3 }
_ => 2
}
```
provide the following diagnostic:
```
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
--> $DIR/missing-comma-in-match.rs:15:18
|
X | &None => 1
| -- - help: missing comma
| |
| while parsing the match arm starting here
X | &Some(2) => { 3 }
| ^^ expected one of `,`, `.`, `?`, `}`, or an operator here
```
2018-02-18 16:36:35 -06:00
|
|
|
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/missing-comma-in-match.rs:6:18
|
Provide missing comma in match arm suggestion
When finding:
```rust
match &Some(3) {
&None => 1
&Some(2) => { 3 }
_ => 2
}
```
provide the following diagnostic:
```
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
--> $DIR/missing-comma-in-match.rs:15:18
|
X | &None => 1
| -- - help: missing comma
| |
| while parsing the match arm starting here
X | &Some(2) => { 3 }
| ^^ expected one of `,`, `.`, `?`, `}`, or an operator here
```
2018-02-18 16:36:35 -06:00
|
|
|
|
|
2018-02-28 12:56:07 -06:00
|
|
|
LL | &None => 1
|
2018-02-23 21:38:36 -06:00
|
|
|
| - help: missing a comma here to end this `match` arm
|
2018-02-28 12:56:07 -06:00
|
|
|
LL | &Some(2) => { 3 }
|
2019-10-28 13:08:53 -05:00
|
|
|
| ^^ expected one of `,`, `.`, `?`, `}`, or an operator
|
Provide missing comma in match arm suggestion
When finding:
```rust
match &Some(3) {
&None => 1
&Some(2) => { 3 }
_ => 2
}
```
provide the following diagnostic:
```
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
--> $DIR/missing-comma-in-match.rs:15:18
|
X | &None => 1
| -- - help: missing comma
| |
| while parsing the match arm starting here
X | &Some(2) => { 3 }
| ^^ expected one of `,`, `.`, `?`, `}`, or an operator here
```
2018-02-18 16:36:35 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|