2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
2016-11-21 07:32:58 -06:00
|
|
|
// no-prefer-dynamic
|
2016-11-17 09:41:20 -06:00
|
|
|
// compile-flags: --test
|
|
|
|
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
2016-11-21 07:32:58 -06:00
|
|
|
use proc_macro::TokenStream;
|
|
|
|
|
2017-01-18 16:31:55 -06:00
|
|
|
// ```
|
|
|
|
// assert!(true);
|
|
|
|
// ```
|
2016-11-21 07:32:58 -06:00
|
|
|
#[proc_macro_derive(Foo)]
|
|
|
|
pub fn derive_foo(_input: TokenStream) -> TokenStream {
|
2016-11-17 09:41:20 -06:00
|
|
|
"".parse().unwrap()
|
|
|
|
}
|
2016-11-21 07:32:58 -06:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
pub fn test_derive() {
|
|
|
|
assert!(true);
|
|
|
|
}
|