2020-03-03 02:17:15 -06:00
|
|
|
// Test proc-macro crate can be built without addtional RUSTFLAGS
|
|
|
|
// on musl target
|
2020-03-08 08:49:52 -05:00
|
|
|
// override -Ctarget-feature=-crt-static from compiletest
|
|
|
|
// compile-flags: -Ctarget-feature=
|
2020-03-03 05:17:24 -06:00
|
|
|
// build-pass
|
2020-03-03 02:17:15 -06:00
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
|
|
|
|
#[proc_macro_derive(Foo)]
|
|
|
|
pub fn derive_foo(input: TokenStream) -> TokenStream {
|
|
|
|
input
|
|
|
|
}
|