Skip to content

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/libcore/macros.rs

+2
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ macro_rules! debug_assert_ne {
238238
/// with converting downstream errors.
239239
///
240240
/// 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: `r#try`.
241243
///
242244
/// `try!` matches the given [`Result`]. In case of the `Ok` variant, the
243245
/// expression has the value of the wrapped value.

0 commit comments

Comments
 (0)
Please sign in to comment.