]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/try-macro-suggestion.stderr
Rollup merge of #92581 - Meziu:armv6k-3ds-target, r=nagisa
[rust.git] / src / test / ui / deprecation / try-macro-suggestion.stderr
1 error: use of deprecated `try` macro
2   --> $DIR/try-macro-suggestion.rs:3:8
3    |
4 LL |     Ok(try!());
5    |        ^^^^^^
6    |
7    = note: in the 2018 edition `try` is a reserved keyword, and the `try!()` macro is deprecated
8 help: you can still access the deprecated `try!()` macro using the "raw identifier" syntax
9    |
10 LL |     Ok(r#try!());
11    |        ++
12
13 error: use of deprecated `try` macro
14   --> $DIR/try-macro-suggestion.rs:4:8
15    |
16 LL |     Ok(try!(Ok(())))
17    |        ^^^^^^^^^^^^
18    |
19    = note: in the 2018 edition `try` is a reserved keyword, and the `try!()` macro is deprecated
20 help: you can use the `?` operator instead
21    |
22 LL -     Ok(try!(Ok(())))
23 LL +     Ok(Ok(())?)
24    | 
25 help: alternatively, you can still access the deprecated `try!()` macro using the "raw identifier" syntax
26    |
27 LL |     Ok(r#try!(Ok(())))
28    |        ++
29
30 error: aborting due to 2 previous errors
31