]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | warning: `try` is a keyword in the 2018 edition |
60c5eb7d | 2 | --> $DIR/try-macro.rs:12:5 |
b7449926 XL |
3 | | |
4 | LL | try!(x); | |
5 | | ^^^ help: you can use a raw identifier to stay compatible: `r#try` | |
6 | | | |
74b04a01 | 7 | note: the lint level is defined here |
b7449926 XL |
8 | --> $DIR/try-macro.rs:6:9 |
9 | | | |
10 | LL | #![warn(rust_2018_compatibility)] | |
11 | | ^^^^^^^^^^^^^^^^^^^^^^^ | |
416331ca | 12 | = note: `#[warn(keyword_idents)]` implied by `#[warn(rust_2018_compatibility)]` |
136023e0 | 13 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! |
b7449926 XL |
14 | = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716> |
15 | ||
ba9703b0 XL |
16 | warning: 1 warning emitted |
17 |