rust/tests/ui/proc-macro/auxiliary/meta-macro.rs
2024-02-16 20:02:50 +00:00

16 lines
318 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 }