about summary refs log tree commit diff
path: root/tests/ui/resolve/unused-qualifications-suggestion.fixed
blob: 22e0daea467641805e78ba59a953c03d35cc9826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//@ 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
    bar();

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