mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
24 lines
321 B
Rust
24 lines
321 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;
|
|
foo::bar();
|
|
//~^ ERROR unnecessary qualification
|
|
|
|
use baz::qux::quux;
|
|
baz::qux::quux();
|
|
//~^ ERROR unnecessary qualification
|
|
}
|