rust/src/test/ui/proc-macro/auxiliary/attribute-with-error.rs
2018-12-25 21:08:33 -07:00

14 lines
249 B
Rust

// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn foo(_attr: TokenStream, input: TokenStream) -> TokenStream {
input.into_iter().collect()
}