mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
25 lines
501 B
Rust
25 lines
501 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`.
|
|
}
|