]> git.lizzy.rs Git - rust.git/blob - tests/ui/auxiliary/edition-kw-macro-2018.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / auxiliary / edition-kw-macro-2018.rs
1 // edition:2018
2
3 #[macro_export]
4 macro_rules! produces_async {
5     () => (pub fn async() {})
6 }
7
8 #[macro_export]
9 macro_rules! produces_async_raw {
10     () => (pub fn r#async() {})
11 }
12
13 #[macro_export]
14 macro_rules! consumes_async {
15     (async) => (1)
16 }
17
18 #[macro_export]
19 macro_rules! consumes_async_raw {
20     (r#async) => (1)
21 }
22
23 #[macro_export]
24 macro_rules! passes_ident {
25     ($i: ident) => ($i)
26 }