We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 705da41 + 1fca907 commit e292b3cCopy full SHA for e292b3c
src/libcore/macros.rs
@@ -238,6 +238,10 @@ macro_rules! debug_assert_ne {
238
/// with converting downstream errors.
239
///
240
/// The `?` operator was added to replace `try!` and should be used instead.
241
+/// Furthermore, `try` is a reserved word in Rust 2018, so if you must use
242
+/// it, you will need to use the [raw-identifier syntax][ris]: `r#try`.
243
+///
244
+/// [ris]: https://doc.rust-lang.org/nightly/rust-by-example/compatibility/raw_identifiers.html
245
246
/// `try!` matches the given [`Result`]. In case of the `Ok` variant, the
247
/// expression has the value of the wrapped value.
0 commit comments