2018-11-21 16:13:09 -06:00
|
|
|
// edition:2018
|
|
|
|
// compile-flags:--extern issue_56125
|
|
|
|
// aux-build:issue-56125.rs
|
|
|
|
|
2018-11-24 20:45:43 -06:00
|
|
|
mod m1 {
|
|
|
|
use issue_56125::last_segment::*;
|
|
|
|
//~^ ERROR `issue_56125` is ambiguous
|
|
|
|
}
|
|
|
|
|
|
|
|
mod m2 {
|
|
|
|
use issue_56125::non_last_segment::non_last_segment::*;
|
|
|
|
//~^ ERROR `issue_56125` is ambiguous
|
|
|
|
}
|
|
|
|
|
|
|
|
mod m3 {
|
|
|
|
mod empty {}
|
|
|
|
use empty::issue_56125; //~ ERROR unresolved import `empty::issue_56125`
|
|
|
|
use issue_56125::*; //~ ERROR `issue_56125` is ambiguous
|
|
|
|
}
|
2018-11-21 16:13:09 -06:00
|
|
|
|
|
|
|
fn main() {}
|