diff options
Diffstat (limited to 'tests/ui/editions/edition-keywords-2018-2018-expansion.rs')
-rw-r--r-- | tests/ui/editions/edition-keywords-2018-2018-expansion.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/editions/edition-keywords-2018-2018-expansion.rs b/tests/ui/editions/edition-keywords-2018-2018-expansion.rs new file mode 100644 index 000000000..a8e69fed6 --- /dev/null +++ b/tests/ui/editions/edition-keywords-2018-2018-expansion.rs @@ -0,0 +1,14 @@ +// edition:2018 +// aux-build:edition-kw-macro-2018.rs + +#[macro_use] +extern crate edition_kw_macro_2018; + +mod one_async { + produces_async! {} //~ ERROR expected identifier, found keyword `async` +} +mod two_async { + produces_async_raw! {} // OK +} + +fn main() {} |