]> git.lizzy.rs Git - rust.git/blob - tests/incremental/auxiliary/issue-49482-macro-def.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / incremental / auxiliary / issue-49482-macro-def.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type="proc-macro"]
5 #![allow(non_snake_case)]
6
7 extern crate proc_macro;
8
9 macro_rules! proc_macro_expr_impl {
10     ($(
11         $( #[$attr:meta] )*
12         pub fn $func:ident($input:ident: &str) -> String;
13     )+) => {
14         $(
15             $( #[$attr] )*
16             #[proc_macro_derive($func)]
17             pub fn $func(_input: ::proc_macro::TokenStream) -> ::proc_macro::TokenStream {
18                 panic!()
19             }
20         )+
21     };
22 }
23
24 proc_macro_expr_impl! {
25     pub fn f1(input: &str) -> String;
26     pub fn f2(input: &str) -> String;
27     pub fn f3(input: &str) -> String;
28     pub fn f4(input: &str) -> String;
29     pub fn f5(input: &str) -> String;
30     pub fn f6(input: &str) -> String;
31     pub fn f7(input: &str) -> String;
32     pub fn f8(input: &str) -> String;
33     pub fn f9(input: &str) -> String;
34     pub fn fA(input: &str) -> String;
35     pub fn fB(input: &str) -> String;
36     pub fn fC(input: &str) -> String;
37     pub fn fD(input: &str) -> String;
38     pub fn fE(input: &str) -> String;
39     pub fn fF(input: &str) -> String;
40 }