summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/circular_modules_hello.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/circular_modules_hello.rs')
-rw-r--r--tests/ui/parser/circular_modules_hello.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/parser/circular_modules_hello.rs b/tests/ui/parser/circular_modules_hello.rs
new file mode 100644
index 000000000..6968ca97b
--- /dev/null
+++ b/tests/ui/parser/circular_modules_hello.rs
@@ -0,0 +1,8 @@
+// ignore-test: this is an auxiliary file for circular-modules-main.rs
+
+#[path = "circular_modules_main.rs"]
+mod circular_modules_main;
+
+pub fn say_hello() {
+ println!("{}", circular_modules_main::hi_str());
+}