summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/unused-qualifications-suggestion.rs
blob: f6722e96537c92f2e7fc4771bcb32744943a5590 (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;
    foo::bar();
    //~^ ERROR unnecessary qualification

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