rust/src/test/ui/parser/issue-15980.stderr

25 lines
812 B
Plaintext
Raw Normal View History

error: expected identifier, found keyword `return`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-15980.rs:10:13
|
2018-02-22 18:42:32 -06:00
LL | Err(ref e) if e.kind == io::EndOfFile {
| ------------- while parsing this struct
2018-02-24 17:01:39 -06:00
LL | //~^ NOTE while parsing this struct
2018-02-22 18:42:32 -06:00
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 `_`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-15980.rs:15:9
|
2018-02-22 18:42:32 -06:00
LL | }
| - expected one of `.`, `=>`, `?`, or an operator here
2018-02-24 17:01:39 -06:00
LL | //~^ NOTE expected one of `.`, `=>`, `?`, or an operator here
2018-02-22 18:42:32 -06:00
LL | _ => {}
| ^ unexpected token
error: aborting due to 2 previous errors