4 #![crate_type = "proc-macro"]
6 extern crate proc_macro;
11 pub fn single_quote_alone(_: TokenStream) -> TokenStream {
12 // `&'a u8`, but the `'` token is not joint
13 let trees: Vec<TokenTree> = vec![
14 Punct::new('&', Spacing::Alone).into(),
15 Punct::new('\'', Spacing::Alone).into(),
16 Ident::new("a", Span::call_site()).into(),
17 Ident::new("u8", Span::call_site()).into(),
19 trees.into_iter().collect()