rust/tests/ui/editions/auxiliary/edition-kw-macro-2015.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
420 B
Rust
Raw Normal View History

// edition:2015
2018-04-23 17:50:28 -05:00
#![allow(keyword_idents)]
2018-04-23 17:50:28 -05:00
#[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)
}