]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 | 1 | // force-host |
0531ce1d XL |
2 | // no-prefer-dynamic |
3 | ||
0531ce1d XL |
4 | #![crate_type = "proc-macro"] |
5 | ||
6 | extern crate proc_macro; | |
7 | ||
8 | use proc_macro::*; | |
9 | ||
10 | #[proc_macro] | |
11 | pub fn neg_one(_input: TokenStream) -> TokenStream { | |
83c7162d | 12 | TokenTree::Literal(Literal::i32_suffixed(-1)).into() |
0531ce1d XL |
13 | } |
14 | ||
15 | #[proc_macro] | |
16 | pub fn neg_one_float(_input: TokenStream) -> TokenStream { | |
83c7162d | 17 | TokenTree::Literal(Literal::f32_suffixed(-1.0)).into() |
0531ce1d | 18 | } |