2024-02-16 14:02:50 -06:00
|
|
|
//@ edition: 2021
|
|
|
|
//@ aux-build: extern-with-ambiguous-1-extern.rs
|
2023-07-26 09:46:49 -05:00
|
|
|
|
|
|
|
// `extern-with-ambiguous-1-extern.rs` doesn't has
|
|
|
|
// ambiguous, just for compare.
|
|
|
|
|
|
|
|
extern crate extern_with_ambiguous_1_extern;
|
|
|
|
|
|
|
|
mod s {
|
|
|
|
pub mod error {
|
|
|
|
use extern_with_ambiguous_1_extern::*;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
use s::*;
|
|
|
|
use extern_with_ambiguous_1_extern::*;
|
|
|
|
use error::*;
|
|
|
|
//~^ ERROR `error` is ambiguous
|
|
|
|
|
|
|
|
fn main() {}
|