summaryrefslogtreecommitdiffstats
path: root/tests/ui/rust-2018/proc-macro-crate-in-paths.rs
blob: 2d4cb6514ec2c2a1a504d147745bc20478d4681a (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

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