summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/use-redundant/issue-92904.rs
blob: 511d9d263cf857b51e5547841fe2b6c5c7d4e03a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// check-pass

pub struct Foo(bar::Bar);

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

pub fn warning() -> Foo {
    use bar::*;
    #[deny(unused_imports)]
    use self::Foo; // no error
    Foo(Bar('a'))
}

fn main() {}