graydon/rust — Issue #1195: Add a note on incorrect trailing semicolon
Author: brson
Created: 2011-11-19 20:29:55+00:00
State: open
Labels: middle, unassigned

Putting a trailing semi on statements that should be expressions is a common error:

```
ret if x { true; } else { false; };
```

It shouldn't be too difficult to look at the types here and offer a suggestion of what the problem might be