]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auxiliary/edition-kw-macro-2018.rs
Rollup merge of #51765 - jonas-schievink:patch-1, r=KodrAus
[rust.git] / src / test / ui / auxiliary / edition-kw-macro-2018.rs
1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // edition:2018
12
13 #![feature(raw_identifiers)]
14
15 #[macro_export]
16 macro_rules! produces_async {
17     () => (pub fn async() {})
18 }
19
20 #[macro_export]
21 macro_rules! produces_async_raw {
22     () => (pub fn r#async() {})
23 }
24
25 #[macro_export]
26 macro_rules! consumes_async {
27     (async) => (1)
28 }
29
30 #[macro_export]
31 macro_rules! consumes_async_raw {
32     (r#async) => (1)
33 }
34
35 #[macro_export]
36 macro_rules! passes_ident {
37     ($i: ident) => ($i)
38 }