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

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

26 lines
330 B
Rust
Raw Permalink 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;
bar();
//~^ ERROR unnecessary qualification
2024-03-11 09:39:02 -05:00
bar();
use baz::qux::quux;
quux();
//~^ ERROR unnecessary qualification
2024-03-11 09:39:02 -05:00
quux();
}