diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-02-18 14:36:35 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-02-27 10:45:18 -0800 |
| commit | 0c9afa87ba8145d09a2c4af7b15a9a23ad470fc8 (patch) | |
| tree | 134b21037ed63090afb8e55129abccb254abc284 /src/test/incremental/thinlto | |
| parent | 29f5c699b11a6a148f097f82eaa05202f8799bbc (diff) | |
| download | rust-0c9afa87ba8145d09a2c4af7b15a9a23ad470fc8.tar.gz rust-0c9afa87ba8145d09a2c4af7b15a9a23ad470fc8.zip | |
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
```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
