proc macro `main` not expanded: Cannot create expander for /Users/rohan/Desktop/code/autodca/target/debug/deps/libtokio_macros-71ca935c51905a5f.dylib: Io(Custom { kind: InvalidData, error: DlOpen { desc: "dlopen(/Users/rohan/Desktop/code/autodca/target/debug/deps/libtokio_macros-71ca935...
[feature(proc_macro)] extern crate bar; use bar::bar; struct Foo; bar!(); This code compiles but I would expect it not to because the expanded form doesn't compile: // foo/src/lib.rs -- `cargo expand`-ed and cleaned up struct Foo; mod __bar { static mut BAR: Option<Foo> ...