fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
878 B30 linesraw
1error: use of deprecated `try` macro
2  --> $DIR/try-macro-suggestion.rs:3:8
3   |
4LL |     Ok(try!());
5   |        ^^^^^^
6   |
7   = note: in the 2018 edition `try` is a reserved keyword, and the `try!()` macro is deprecated
8help: you can still access the deprecated `try!()` macro using the "raw identifier" syntax
9   |
10LL |     Ok(r#try!());
11   |        ^^
12
13error: use of deprecated `try` macro
14  --> $DIR/try-macro-suggestion.rs:4:8
15   |
16LL |     Ok(try!(Ok(())))
17   |        ^^^^^^^^^^^^
18   |
19   = note: in the 2018 edition `try` is a reserved keyword, and the `try!()` macro is deprecated
20help: you can use the `?` operator instead
21   |
22LL |     Ok(Ok(())?)
23   |       --     ^
24help: alternatively, you can still access the deprecated `try!()` macro using the "raw identifier" syntax
25   |
26LL |     Ok(r#try!(Ok(())))
27   |        ^^
28
29error: aborting due to 2 previous errors
30