rust/tests/ui/rust-2018/proc-macro-crate-in-paths.rs
2023-12-10 13:03:28 -08:00

16 lines
333 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
// force-host
// no-prefer-dynamic
#![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
}