about summary refs log tree commit diff
path: root/tests/ui/modules/mod_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/modules/mod_file.rs')
-rw-r--r--tests/ui/modules/mod_file.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/modules/mod_file.rs b/tests/ui/modules/mod_file.rs
new file mode 100644
index 00000000000..0ca52889e5c
--- /dev/null
+++ b/tests/ui/modules/mod_file.rs
@@ -0,0 +1,10 @@
+// run-pass
+// ignore-pretty issue #37195
+
+// Testing that a plain .rs file can load modules from other source files
+
+mod mod_file_aux;
+
+pub fn main() {
+    assert_eq!(mod_file_aux::foo(), 10);
+}