rust/tests/ui/imports/extern-with-ambiguous-1.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
390 B
Rust
Raw Normal View History

//@ edition: 2021
//@ aux-build: extern-with-ambiguous-1-extern.rs
// `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() {}