4 #![crate_type = "proc-macro"]
5 #![feature(proc_macro_quote)]
7 extern crate proc_macro;
9 use proc_macro::{TokenStream, quote};
11 // This macro is not very interesting, but it does contain delimited tokens with
12 // no content - `()` and `{}` - which has caused problems in the past.
13 // Also, it tests that we can escape `$` via `$$`.
15 pub fn hello(_: TokenStream) -> TokenStream {
18 macro_rules! m { ($$($$t:tt)*) => { $$($$t)* } }