Closed
Description
macro_rules! m {
($($t:tt)*) => {};
}
m! { async try dyn await }
Compiling this code on the 2018 edition causes an following error:
error[E0721]: `await` is a keyword in the 2018 edition
--> src/main.rs:4:20
|
4 | m! { async try dyn await }
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0721`.
However, as with other keywords, this await
keyword should be ignored through ($($t:tt)*) => {};
.