rust/src/test/ui/parser/issue-15980.stderr
Esteban Küber 0baf61bfdb Increase spacing for suggestions in diagnostics
Make the spacing between the code snippet and verbose structured
suggestions consistent with note and help messages.
2019-10-24 12:26:01 -07:00

26 lines
698 B
Plaintext

error: expected identifier, found keyword `return`
--> $DIR/issue-15980.rs:8:13
|
LL | Err(ref e) if e.kind == io::EndOfFile {
| ------------- while parsing this struct
LL |
LL | return
| ^^^^^^ expected identifier, found keyword
|
help: you can escape reserved keywords to use them as identifiers
|
LL | r#return
|
error: expected one of `.`, `=>`, `?`, or an operator, found `_`
--> $DIR/issue-15980.rs:13:9
|
LL | }
| - expected one of `.`, `=>`, `?`, or an operator here
LL |
LL | _ => {}
| ^ unexpected token
error: aborting due to 2 previous errors