1 2 3 4 5 6 7 8
use quote::quote; struct Ipv4Addr; fn main() { let ip = Ipv4Addr; let _ = quote! { #(#ip)* }; }