2020-11-05 14:16:12 -06:00
|
|
|
// check-pass
|
|
|
|
|
2020-10-01 12:47:25 -05:00
|
|
|
// Minimized case from #62767.
|
2020-03-21 11:19:48 -05:00
|
|
|
mod m {
|
|
|
|
pub enum Same {
|
|
|
|
Same,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use m::*;
|
|
|
|
|
2020-10-01 12:47:25 -05:00
|
|
|
// The variant `Same` introduced by this import is also considered when resolving the prefix
|
|
|
|
// `Same::` during import validation to avoid effects similar to time travel (#74556).
|
2020-11-05 14:16:12 -06:00
|
|
|
use Same::Same;
|
2020-10-01 12:47:25 -05:00
|
|
|
|
|
|
|
// Case from #74556.
|
|
|
|
mod foo {
|
|
|
|
pub mod bar {
|
|
|
|
pub mod bar {
|
|
|
|
pub fn foobar() {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use foo::*;
|
2020-11-05 14:16:12 -06:00
|
|
|
use bar::bar;
|
|
|
|
|
2020-10-01 12:47:25 -05:00
|
|
|
use bar::foobar;
|
2020-03-21 11:19:48 -05:00
|
|
|
|
|
|
|
fn main() {}
|