2018-11-24 07:34:13 -06:00
|
|
|
// force-host
|
2017-09-12 14:55:41 -05:00
|
|
|
// no-prefer-dynamic
|
2018-05-13 10:46:38 -05:00
|
|
|
|
2017-09-12 14:55:41 -05:00
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
|
|
|
|
#[proc_macro_derive(Foo, attributes(foo))]
|
|
|
|
pub fn derive(input: TokenStream) -> TokenStream {
|
|
|
|
assert!(!input.to_string().contains("#[cfg(any())]"));
|
|
|
|
"".parse().unwrap()
|
|
|
|
}
|