From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/editions/auxiliary/edition-kw-macro-2018.rs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/ui/editions/auxiliary/edition-kw-macro-2018.rs (limited to 'tests/ui/editions/auxiliary/edition-kw-macro-2018.rs') 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) +} -- cgit v1.2.3