Files
rust/tests/ui/single_component_path_imports_nested_first.rs
2025-02-15 13:38:42 +01:00

23 lines
430 B
Rust

#![warn(clippy::single_component_path_imports)]
#![allow(unused_imports)]
//@no-rustfix
use regex;
//~^ single_component_path_imports
use serde as edres;
pub use serde;
fn main() {
regex::Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
}
mod root_nested_use_mod {
use {regex, serde};
//~^ single_component_path_imports
//~| single_component_path_imports
#[allow(dead_code)]
fn root_nested_use_mod() {}
}