2 // aux-build:edition-kw-macro-2018.rs
5 extern crate edition_kw_macro_2018;
11 pub fn check_async() {
12 let mut async = 1; // OK
13 let mut r#async = 1; // OK
15 r#async = consumes_async!(async); // OK
16 r#async = consumes_async!(r#async); //~ ERROR no rules expected the token `r#async`
17 r#async = consumes_async_raw!(async); //~ ERROR no rules expected the token `async`
18 r#async = consumes_async_raw!(r#async); // OK
20 if passes_ident!(async) == 1 {} // OK
21 if passes_ident!(r#async) == 1 {} // OK
22 module::async(); // OK
23 module::r#async(); // OK