diff options
Diffstat (limited to 'tests/ui/editions/auxiliary/edition-kw-macro-2018.rs')
-rw-r--r-- | tests/ui/editions/auxiliary/edition-kw-macro-2018.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/ui/editions/auxiliary/edition-kw-macro-2018.rs b/tests/ui/editions/auxiliary/edition-kw-macro-2018.rs new file mode 100644 index 000000000..d07c0218d --- /dev/null +++ b/tests/ui/editions/auxiliary/edition-kw-macro-2018.rs @@ -0,0 +1,28 @@ +// edition:2018 + +#![allow(keyword_idents)] + +#[macro_export] +macro_rules! produces_async { + () => (pub fn async() {}) +} + +#[macro_export] +macro_rules! produces_async_raw { + () => (pub fn r#async() {}) +} + +#[macro_export] +macro_rules! consumes_async { + (async) => (1) +} + +#[macro_export] +macro_rules! consumes_async_raw { + (r#async) => (1) +} + +#[macro_export] +macro_rules! passes_ident { + ($i: ident) => ($i) +} |