Closed
Description
I tried this code (playground):
use a::*;
mod a {
pub use b::*;
mod b {
pub const SOME_VALUE: u32 = 1;
}
pub use c::*;
mod c {
pub const SOME_VALUE: u32 = 2;
}
}
fn main() {
assert_eq!(SOME_VALUE, 1);
}
I expected to see this happen: an error like error[E0659]: SOME_VALUE is ambiguous
Instead, this happened: the code compiles and runs to completion.
If you put the use a::*
after the mod a
, the expected error is thrown.
Meta
This happens both on stable and nightly.