summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/rustc-macro-crate.rs
blob: dd5edc984dafaa645bb2e87616a50c66a4428235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// force-host
// no-prefer-dynamic
// compile-flags: --crate-type proc-macro

#![crate_type = "proc-macro"]

extern crate proc_macro;

use proc_macro::TokenStream;

#[proc_macro_derive(Foo)]
pub fn foo(input: TokenStream) -> TokenStream {
    input
}