rust/tests/ui/lint/unused-qualifications-global-paths.rs
许杰友 Jieyou Xu (Joe) 85bad8d1bf
Don't trigger unused_qualifications on global paths
# Conflicts:
#	tests/ui/lint/lint-qualification.stderr
2024-03-15 14:59:05 +00:00

13 lines
264 B
Rust

// Checks that `unused_qualifications` don't fire on explicit global paths.
// Issue: <https://github.com/rust-lang/rust/issues/122374>.
//@ check-pass
#![deny(unused_qualifications)]
pub fn bar() -> u64 {
::std::default::Default::default()
}
fn main() {}