rust/src/test/ui/proc-macro/auxiliary/api/mod.rs

17 lines
345 B
Rust
Raw Normal View History

// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
#![crate_name = "proc_macro_api_tests"]
#![deny(dead_code)] // catch if a test function is never called
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro]
pub fn run(input: TokenStream) -> TokenStream {
assert!(input.is_empty());
TokenStream::new()
}