summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-glob-circular.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/import-glob-circular.rs')
-rw-r--r--tests/ui/imports/import-glob-circular.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/imports/import-glob-circular.rs b/tests/ui/imports/import-glob-circular.rs
new file mode 100644
index 000000000..e47fa870c
--- /dev/null
+++ b/tests/ui/imports/import-glob-circular.rs
@@ -0,0 +1,19 @@
+mod circ1 {
+ pub use circ2::f2;
+ pub fn f1() { println!("f1"); }
+ pub fn common() -> usize { return 0; }
+}
+
+mod circ2 {
+ pub use circ1::f1;
+ pub fn f2() { println!("f2"); }
+ pub fn common() -> usize { return 1; }
+}
+
+mod test {
+ use circ1::*;
+
+ fn test() { f1066(); } //~ ERROR cannot find function `f1066` in this scope
+}
+
+fn main() {}