2021-04-22 04:31:13 -05:00
|
|
|
#![warn(clippy::single_component_path_imports)]
|
|
|
|
#![allow(unused_imports)]
|
2023-08-24 14:32:12 -05:00
|
|
|
//@no-rustfix
|
2021-04-22 04:31:13 -05:00
|
|
|
use regex;
|
2023-08-24 14:32:12 -05:00
|
|
|
//~^ ERROR: this import is redundant
|
|
|
|
//~| NOTE: `-D clippy::single-component-path-imports` implied by `-D warnings`
|
2023-07-17 03:19:29 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
use serde as edres;
|
2023-07-17 03:19:29 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
pub use serde;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
regex::Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
|
|
|
|
}
|
|
|
|
|
|
|
|
mod root_nested_use_mod {
|
|
|
|
use {regex, serde};
|
2023-08-24 14:32:12 -05:00
|
|
|
//~^ ERROR: this import is redundant
|
|
|
|
//~| ERROR: this import is redundant
|
2021-04-22 04:31:13 -05:00
|
|
|
#[allow(dead_code)]
|
|
|
|
fn root_nested_use_mod() {}
|
|
|
|
}
|