25 lines
503 B
Rust
25 lines
503 B
Rust
//@ check-pass
|
|
//@ aux-build: issue-114682-3-extern.rs
|
|
// https://github.com/rust-lang/rust/pull/114682#issuecomment-1880625909
|
|
|
|
extern crate issue_114682_3_extern;
|
|
|
|
use issue_114682_3_extern::*;
|
|
|
|
mod auto {
|
|
pub trait SettingsExt {
|
|
fn ext(&self) {}
|
|
}
|
|
|
|
impl<T> SettingsExt for T {}
|
|
}
|
|
|
|
pub use self::auto::*;
|
|
|
|
fn main() {
|
|
let a: u8 = 1;
|
|
a.ext();
|
|
//^ FIXME: it should report `ext` not found because `SettingsExt`
|
|
// is an ambiguous item in `issue-114682-3-extern.rs`.
|
|
}
|