From 9c8802dc01692cbb684b8759c083b71b27102c29 Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Sat, 1 Dec 2018 18:16:08 -0600 Subject: [PATCH] Explain raw identifer syntax --- src/libcore/macros.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 8b1855800c2f..a7fd3a08b4a6 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -238,6 +238,8 @@ macro_rules! debug_assert_ne { /// with converting downstream errors. /// /// The `?` operator was added to replace `try!` and should be used instead. +/// Furthermore, `try` is a reserved word in Rust 2018, so if you must use +/// it, you will need to use the raw-identifier syntax: `r#try`. /// /// `try!` matches the given [`Result`]. In case of the `Ok` variant, the /// expression has the value of the wrapped value.