[rust-dev] Exporting macros: #[macro_escape] usage

Chris Morgan me at chrismorgan.info
Fri Jan 10 15:44:51 PST 2014


The macro is being defined after the module is defined. You need to move
the macro definition before the "pub mod submod;" line. Also due to the
scoping rules of macros, you don't need #[macro_escape] there---it's a
child, so it gets the macro. Only siblings, parents, uncles, aunts,
cousins, &c. would need it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140111/aebe37f2/attachment.html>


More information about the Rust-dev mailing list