summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/single_component_path_imports_self_after.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/single_component_path_imports_self_after.rs')
-rw-r--r--src/tools/clippy/tests/ui/single_component_path_imports_self_after.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/single_component_path_imports_self_after.rs b/src/tools/clippy/tests/ui/single_component_path_imports_self_after.rs
new file mode 100644
index 000000000..48e8e5302
--- /dev/null
+++ b/src/tools/clippy/tests/ui/single_component_path_imports_self_after.rs
@@ -0,0 +1,15 @@
+#![warn(clippy::single_component_path_imports)]
+#![allow(unused_imports)]
+
+use self::regex::{Regex as xeger, RegexSet as tesxeger};
+pub use self::{
+ regex::{Regex, RegexSet},
+ some_mod::SomeType,
+};
+use regex;
+
+mod some_mod {
+ pub struct SomeType;
+}
+
+fn main() {}