about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-02-18 14:36:35 -0800
committerEsteban Küber <esteban@kuber.com.ar>2018-02-27 10:45:18 -0800
commit0c9afa87ba8145d09a2c4af7b15a9a23ad470fc8 (patch)
tree134b21037ed63090afb8e55129abccb254abc284 /src/test/incremental/thinlto
parent29f5c699b11a6a148f097f82eaa05202f8799bbc (diff)
downloadrust-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