mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
17 lines
364 B
Rust
17 lines
364 B
Rust
// build-pass (FIXME(62277): could be check-pass?)
|
|
// force-host
|
|
// no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
#![deny(rust_2018_compatibility)]
|
|
#![feature(rust_2018_preview)]
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro_derive(Template, attributes(template))]
|
|
pub fn derive_template(input: TokenStream) -> TokenStream {
|
|
input
|
|
}
|