I tried this code:
/// [`Dummy`] should be ambiguous. But it works.
pub trait Dummy<T>: Sized {
}
#[cfg(feature = "derive")]
pub use dummy::Dummy; // this is a derive macro
Try doing that on https://github.com/cksac/fake-rs crate or serde
I expected to see this happen: ambiguous Dummy link found, use explicit macro@Dummy.
Instead, this happened: It compiles
I tried this code:
Try doing that on https://github.com/cksac/fake-rs crate or serde
I expected to see this happen: ambiguous
Dummylink found, use explicitmacro@Dummy.Instead, this happened: It compiles