error: unnecessary qualification --> $DIR/lint-qualification.rs:12:5 | LL | foo::bar(); | ^^^^^^^^ | note: the lint level is defined here --> $DIR/lint-qualification.rs:2:9 | LL | #![deny(unused_qualifications)] | ^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary path segments | LL - foo::bar(); LL + bar(); | error: unnecessary qualification --> $DIR/lint-qualification.rs:13:5 | LL | crate::foo::bar(); | ^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | LL - crate::foo::bar(); LL + bar(); | error: unnecessary qualification --> $DIR/lint-qualification.rs:18:13 | LL | let _ = std::string::String::new(); | ^^^^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | LL - let _ = std::string::String::new(); LL + let _ = String::new(); | error: unnecessary qualification --> $DIR/lint-qualification.rs:20:12 | LL | let _: std::vec::Vec = std::vec::Vec::::new(); | ^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | LL - let _: std::vec::Vec = std::vec::Vec::::new(); LL + let _: Vec = std::vec::Vec::::new(); | error: unnecessary qualification --> $DIR/lint-qualification.rs:20:36 | LL | let _: std::vec::Vec = std::vec::Vec::::new(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | LL - let _: std::vec::Vec = std::vec::Vec::::new(); LL + let _: std::vec::Vec = Vec::::new(); | error: unused import: `std::fmt` --> $DIR/lint-qualification.rs:24:9 | LL | use std::fmt; | ^^^^^^^^ | note: the lint level is defined here --> $DIR/lint-qualification.rs:3:9 | LL | #![deny(unused_imports)] | ^^^^^^^^^^^^^^ error: unnecessary qualification --> $DIR/lint-qualification.rs:29:13 | LL | let _ = ::default(); // issue #121999 (modified) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: remove the unnecessary path segments | LL - let _ = ::default(); // issue #121999 (modified) LL + let _ = ::default(); // issue #121999 (modified) | error: aborting due to 7 previous errors