fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
713 B25 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
9   |
10help: you can escape reserved keywords to use them as identifiers
11   |
12LL |             r#return
13   |
14
15error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_`
16  --> $DIR/issue-15980.rs:13:9
17   |
18LL |         }
19   |          - expected one of `.`, `=>`, `?`, or an operator
20LL |
21LL |         _ => {}
22   |         ^ unexpected token
23
24error: aborting due to 2 previous errors
25