24 lines
306 B
Rust
24 lines
306 B
Rust
|
// 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
|
||
|
}
|