fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
840 B24 linesraw
1error: expected identifier, found keyword `let`
2  --> $DIR/try-block-in-edition2015.rs:6:9
3   |
4LL |     let try_result: Option<_> = try {
5   |                                 --- while parsing this struct
6LL |
7LL |         let x = 5;
8   |         ^^^ expected identifier, found keyword
9
10error[E0574]: expected struct, variant or union type, found macro `try`
11  --> $DIR/try-block-in-edition2015.rs:4:33
12   |
13LL |     let try_result: Option<_> = try {
14   |                                 ^^^ not a struct, variant or union type
15   |
16   = note: if you want the `try` keyword, you need Rust 2018 or later
17help: use `!` to invoke the macro
18   |
19LL |     let try_result: Option<_> = try! {
20   |                                    +
21
22error: aborting due to 2 previous errors
23
24For more information about this error, try `rustc --explain E0574`.