summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/auxiliary/recollect.rs
blob: d4494a5aff2e9216ef9ffb29b270f48705fbac6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// force-host
// no-prefer-dynamic

#![crate_type = "proc-macro"]

extern crate proc_macro;
use proc_macro::TokenStream;

#[proc_macro]
pub fn recollect(tokens: TokenStream) -> TokenStream {
    tokens.into_iter().collect()
}