2019-07-03 06:30:28 +09:00
|
|
|
//@ build-pass (FIXME(62277): could be check-pass?)
|
2018-11-24 15:34:13 +02:00
|
|
|
//@ force-host
|
|
|
|
//@ no-prefer-dynamic
|
2024-03-25 14:24:08 +00:00
|
|
|
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
2018-07-12 14:04:24 -07:00
|
|
|
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
#![deny(rust_2018_compatibility)]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
|
|
|
|
#[proc_macro_derive(Template, attributes(template))]
|
|
|
|
pub fn derive_template(input: TokenStream) -> TokenStream {
|
|
|
|
input
|
|
|
|
}
|