fork/rust

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

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

master
889 B31 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(try!(Ok(())))
23LL +     Ok(Ok(())?)
24   |
25help: alternatively, you can still access the deprecated `try!()` macro using the "raw identifier" syntax
26   |
27LL |     Ok(r#try!(Ok(())))
28   |        ++
29
30error: aborting due to 2 previous errors
31