summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/unused-qualifications-suggestion.fixed
blob: 0d4b9007c7b5e4b31bc7312416d91d5c22c4a2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// run-rustfix

#![deny(unused_qualifications)]

mod foo {
    pub fn bar() {}
}

mod baz {
    pub mod qux {
        pub fn quux() {}
    }
}

fn main() {
    use foo::bar;
    bar();
    //~^ ERROR unnecessary qualification

    use baz::qux::quux;
    quux();
    //~^ ERROR unnecessary qualification
}