]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/auxiliary/lifetimes.rs
normalize stderr
[rust.git] / src / test / ui / proc-macro / auxiliary / lifetimes.rs
1 // force-host
2 // no-prefer-dynamic
3
4 #![crate_type = "proc-macro"]
5
6 extern crate proc_macro;
7
8 use proc_macro::*;
9
10 #[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(),
18     ];
19     trees.into_iter().collect()
20 }