Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(decl_macro)]
- mod foo {
- pub macro import_bar($name:ident) {
- use bar::time_travel as $name;
- }
- }
- mod bar {
- pub macro time_travel($name:ident) {
- use foo::import_bar as $name;
- }
- }
- use foo::*;
- import_bar!(m2);
- m2!(import_bar);
Add Comment
Please, Sign In to add comment