rust/tests/ui/resolve/unused-qualifications-suggestion.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
321 B
Rust
Raw Normal View History

// 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
}