I believe that I may have come across a bug -
I have created a runnable sample repo that contains the following module:
// double export of a symbol occurs here pub use funny_derive::Funny; mod funny; pub use self::funny::Funny;
Despite having two symbols that contain the exact same name, it does not appear to have any compilation errors or name conflicts. Is this a bug in the Rust compiler?
Having said that, I know built in macros like Debug also match their trait name. Perhaps this is just some kind of expected special behavior with derive macros. Either way, I’d be curious to hear from someone more knowledgeable about the compiler.