summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/use-redundant/use-redundant-glob.rs
blob: bd9e51b6f59426949d4b12d7c0d779697f7b3174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass
#![warn(unused_imports)]

pub mod bar {
    pub struct Foo(pub Bar);
    pub struct Bar(pub char);
}

pub fn warning() -> bar::Foo {
    use bar::*;
    use bar::Foo; //~ WARNING imported redundantly
    Foo(Bar('a'))
}

fn main() {}