How to call methods on self in macros?

macro_rules! call_on_self { ($F:ident) => { self.$F() } } struct F; impl F { fn dummy(&self) {} fn test(&self) { call_on_self!(dummy); } } The above...