summary refs log tree commit diff
path: root/tests/ui/imports/issue-114682-3.rs
blob: 6dc4df17a2daf3e9958b1f3bf933a9f2c71f7a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//@ 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`.
}