]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/single_component_path_imports_nested_first.rs
Auto merge of #84620 - Dylan-DPC:rollup-wkv97im, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / single_component_path_imports_nested_first.rs
1 // edition:2018
2 #![warn(clippy::single_component_path_imports)]
3 #![allow(unused_imports)]
4
5 use regex;
6 use serde as edres;
7 pub use serde;
8
9 fn main() {
10     regex::Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
11 }
12
13 mod root_nested_use_mod {
14     use {regex, serde};
15     #[allow(dead_code)]
16     fn root_nested_use_mod() {}
17 }