summaryrefslogtreecommitdiffstats
path: root/src/test/ui/modules/mod_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/modules/mod_file.rs')
-rw-r--r--src/test/ui/modules/mod_file.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/modules/mod_file.rs b/src/test/ui/modules/mod_file.rs
new file mode 100644
index 000000000..0ca52889e
--- /dev/null
+++ b/src/test/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);
+}