2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2015
|
|
|
|
|
//@ aux-build:edition-kw-macro-2015.rs
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
|
extern crate edition_kw_macro_2015;
|
|
|
|
|
|
2018-12-16 20:23:27 +03:00
|
|
|
mod module {
|
|
|
|
|
pub fn async() {}
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-24 01:50:28 +03:00
|
|
|
pub fn check_async() {
|
|
|
|
|
let mut async = 1; // OK
|
|
|
|
|
let mut r#async = 1; // OK
|
|
|
|
|
|
|
|
|
|
r#async = consumes_async!(async); // OK
|
2024-06-25 12:52:15 +10:00
|
|
|
r#async = consumes_async!(r#async); //~ ERROR no rules expected `r#async`
|
|
|
|
|
r#async = consumes_async_raw!(async); //~ ERROR no rules expected `async`
|
2018-04-24 01:50:28 +03:00
|
|
|
r#async = consumes_async_raw!(r#async); // OK
|
|
|
|
|
|
|
|
|
|
if passes_ident!(async) == 1 {} // OK
|
|
|
|
|
if passes_ident!(r#async) == 1 {} // OK
|
2024-01-05 17:25:31 +03:00
|
|
|
if passes_tt!(async) == 1 {} // OK
|
|
|
|
|
if passes_tt!(r#async) == 1 {} // OK
|
2018-04-24 01:50:28 +03:00
|
|
|
module::async(); // OK
|
|
|
|
|
module::r#async(); // OK
|
|
|
|
|
}
|
2018-12-16 20:23:27 +03:00
|
|
|
|
|
|
|
|
fn main() {}
|