]> git.lizzy.rs Git - rust.git/blob - src/test/ui/try-macro-suggestion.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / 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(Ok(())?)
23    |       --     ^
24 help: alternatively, you can still access the deprecated `try!()` macro using the "raw identifier" syntax
25    |
26 LL |     Ok(r#try!(Ok(())))
27    |        ^^
28
29 error: aborting due to 2 previous errors
30