summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/glob-cycles.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/glob-cycles.rs')
-rw-r--r--tests/ui/imports/glob-cycles.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/imports/glob-cycles.rs b/tests/ui/imports/glob-cycles.rs
new file mode 100644
index 000000000..f354cc885
--- /dev/null
+++ b/tests/ui/imports/glob-cycles.rs
@@ -0,0 +1,18 @@
+// check-pass
+
+mod foo {
+ pub use bar::*;
+ pub use main as f;
+}
+
+mod bar {
+ pub use foo::*;
+}
+
+pub use foo::*;
+pub use baz::*;
+mod baz {
+ pub use super::*;
+}
+
+pub fn main() {}