rust/tests/ui/imports/issue-114682-3.rs

25 lines
503 B
Rust
Raw Normal View History

//@ check-pass
//@ aux-build: issue-114682-3-extern.rs
2024-01-21 05:17:28 -06:00
// 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`.
}