fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
693 B24 linesraw
1error: expected identifier, found keyword `return`
2  --> $DIR/issue-15980.rs:8:13
3   |
4LL |         Err(ref e) if e.kind == io::EndOfFile {
5   |                                 ------------- while parsing this struct
6LL |
7LL |             return
8   |             ^^^^^^ expected identifier, found keyword
9help: you can escape reserved keywords to use them as identifiers
10   |
11LL |             r#return
12   |
13
14error: expected one of `.`, `=>`, `?`, or an operator, found `_`
15  --> $DIR/issue-15980.rs:13:9
16   |
17LL |         }
18   |          - expected one of `.`, `=>`, `?`, or an operator here
19LL |
20LL |         _ => {}
21   |         ^ unexpected token
22
23error: aborting due to 2 previous errors
24