mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
26 lines
330 B
Rust
26 lines
330 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
|
|
bar();
|
|
|
|
use baz::qux::quux;
|
|
quux();
|
|
//~^ ERROR unnecessary qualification
|
|
quux();
|
|
}
|