auto merge of #15431 : iliekturtles/rust/13279-error-msg-order, r=pcwalton
Moved note after error to reduce confusion when the pair appears in the middle of other errors. Closes #13279.
This commit is contained in:
commit
c8b2a3167b
2 changed files with 6 additions and 5 deletions
|
|
@ -895,13 +895,14 @@ fn add_one(x: int) -> int {
|
|||
We would get an error:
|
||||
|
||||
```{ignore,notrust}
|
||||
note: consider removing this semicolon:
|
||||
x + 1;
|
||||
^
|
||||
error: not all control paths return a value
|
||||
fn add_one(x: int) -> int {
|
||||
x + 1;
|
||||
}
|
||||
|
||||
note: consider removing this semicolon:
|
||||
x + 1;
|
||||
^
|
||||
```
|
||||
|
||||
Remember our earlier discussions about semicolons and `()`? Our function claims
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue