summaryrefslogtreecommitdiffstats
path: root/test cases/rust/19 structured sources/src
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/rust/19 structured sources/src')
-rw-r--r--test cases/rust/19 structured sources/src/foo.rs.in4
-rw-r--r--test cases/rust/19 structured sources/src/main.rs5
2 files changed, 9 insertions, 0 deletions
diff --git a/test cases/rust/19 structured sources/src/foo.rs.in b/test cases/rust/19 structured sources/src/foo.rs.in
new file mode 100644
index 0000000..4f3fc42
--- /dev/null
+++ b/test cases/rust/19 structured sources/src/foo.rs.in
@@ -0,0 +1,4 @@
+
+pub fn bar() -> () {
+ println!("@message@");
+}
diff --git a/test cases/rust/19 structured sources/src/main.rs b/test cases/rust/19 structured sources/src/main.rs
new file mode 100644
index 0000000..3ffeee2
--- /dev/null
+++ b/test cases/rust/19 structured sources/src/main.rs
@@ -0,0 +1,5 @@
+mod foo;
+
+fn main() {
+ foo::bar();
+}