mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
16 lines
318 B
Rust
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 }
|