about summary refs log tree commit diff
path: root/tests/ui/rust-2018/proc-macro-crate-in-paths.rs
blob: e5a4b7a9d5cb74e21d2f339cb26e69b126e80e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ build-pass (FIXME(62277): could be check-pass?)
//@ force-host
//@ no-prefer-dynamic
//@ needs-unwind compiling proc macros with panic=abort causes a warning

#![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
}