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