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 22:36:35 +00:00
|
|
|
error: expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
|
2018-05-03 18:26:58 +00:00
|
|
|
--> $DIR/missing-comma-in-match.rs:16: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 22:36:35 +00:00
|
|
|
|
|
2018-02-28 18:56:07 +00:00
|
|
|
LL | &None => 1
|
2018-02-24 03:38:36 +00:00
|
|
|
| - help: missing a comma here to end this `match` arm
|
2018-02-28 18:56:07 +00:00
|
|
|
LL | &Some(2) => { 3 }
|
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 22:36:35 +00:00
|
|
|
| ^^ expected one of `,`, `.`, `?`, `}`, or an operator here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|