``` macro_rules! static_methods { { $($t:ty :: $id:ident () -> $ret:expr);+ } => { $(static fn $id () -> $t { $ret })+ } } type MyInt = int; impl MyInt { static_methods! { MyInt::zero() -> 0; MyInt::one() -> 1; MyInt::life() -> 42; } } fn main() {} ``` ``` macro-in-impl.rs:10:4: 10:18 error: unexpected token: `static_methods` macro-in-impl.rs:10 static_methods! { ```