1 // Adapted from https://github.com/dtolnay/proc-macro-hack/blob/master/example/src/main.rs 2 // Licensed under either of Apache License, Version 2.0 or MIT license at your option. 3 4 use proc_macro_hack_test::add_one; 5 main()6fn main() { 7 let two = 2; 8 let nine = add_one!(two) + add_one!(2 + 3); 9 println!("nine = {}", nine); 10 } 11