2018-11-24 07:34:13 -06:00
|
|
|
// force-host
|
2016-09-29 21:10:29 -05:00
|
|
|
// no-prefer-dynamic
|
2019-07-20 15:34:41 -05:00
|
|
|
// compile-flags: --crate-type proc-macro
|
2016-09-29 21:10:29 -05:00
|
|
|
|
2016-10-03 11:49:39 -05:00
|
|
|
#![crate_type = "proc-macro"]
|
2016-09-29 21:10:29 -05:00
|
|
|
|
2016-10-03 11:49:39 -05:00
|
|
|
extern crate proc_macro;
|
2016-09-29 21:10:29 -05:00
|
|
|
|
2016-10-03 11:49:39 -05:00
|
|
|
use proc_macro::TokenStream;
|
2016-09-29 21:10:29 -05:00
|
|
|
|
2016-10-03 11:49:39 -05:00
|
|
|
#[proc_macro_derive(Foo)]
|
2016-09-29 21:10:29 -05:00
|
|
|
pub fn foo(input: TokenStream) -> TokenStream {
|
|
|
|
input
|
|
|
|
}
|