summaryrefslogtreecommitdiffstats
path: root/tests/ui/unresolved/unresolved-candidates.rs
blob: 38b227f609b26dead539f9203f2d54df9ec771fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod a {
    pub trait Trait {}
}

mod b {
    use Trait; //~ ERROR unresolved import `Trait`
}

mod c {
    impl Trait for () {} //~ ERROR cannot find trait `Trait` in this scope
}

fn main() {}