summaryrefslogtreecommitdiffstats
path: root/tests/incremental/auxiliary/issue-49482-macro-def.rs
blob: bfa7abb1a9d052163c944d6202ded5c354fe5869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// force-host
// no-prefer-dynamic

#![crate_type="proc-macro"]
#![allow(non_snake_case)]

extern crate proc_macro;

macro_rules! proc_macro_expr_impl {
    ($(
        $( #[$attr:meta] )*
        pub fn $func:ident($input:ident: &str) -> String;
    )+) => {
        $(
            $( #[$attr] )*
            #[proc_macro_derive($func)]
            pub fn $func(_input: ::proc_macro::TokenStream) -> ::proc_macro::TokenStream {
                panic!()
            }
        )+
    };
}

proc_macro_expr_impl! {
    pub fn f1(input: &str) -> String;
    pub fn f2(input: &str) -> String;
    pub fn f3(input: &str) -> String;
    pub fn f4(input: &str) -> String;
    pub fn f5(input: &str) -> String;
    pub fn f6(input: &str) -> String;
    pub fn f7(input: &str) -> String;
    pub fn f8(input: &str) -> String;
    pub fn f9(input: &str) -> String;
    pub fn fA(input: &str) -> String;
    pub fn fB(input: &str) -> String;
    pub fn fC(input: &str) -> String;
    pub fn fD(input: &str) -> String;
    pub fn fE(input: &str) -> String;
    pub fn fF(input: &str) -> String;
}