rust/tests/ui/proc-macro/auxiliary/meta-macro.rs
2023-01-11 09:32:08 +00:00

16 lines
315 B
Rust

// force-host
// no-prefer-dynamic
// edition:2018
#![feature(proc_macro_def_site)]
#![crate_type = "proc-macro"]
extern crate proc_macro;
extern crate make_macro;
use proc_macro::{TokenStream, Span};
make_macro::make_it!(print_def_site);
#[proc_macro]
pub fn dummy(input: TokenStream) -> TokenStream { input }