]> git.proxmox.com Git - rustc.git/blame - src/test/ui/proc-macro/auxiliary/lifetimes.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / proc-macro / auxiliary / lifetimes.rs
CommitLineData
a1dfa0c6 1// force-host
94b46f34
XL
2// no-prefer-dynamic
3
94b46f34
XL
4#![crate_type = "proc-macro"]
5
6extern crate proc_macro;
7
8use proc_macro::*;
9
10#[proc_macro]
11pub 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(),
18 ];
19 trees.into_iter().collect()
20}