aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/bad-expr-path2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/compile-fail/bad-expr-path2.rs b/src/test/compile-fail/bad-expr-path2.rs
new file mode 100644
index 00000000..a2f58f8e
--- /dev/null
+++ b/src/test/compile-fail/bad-expr-path2.rs
@@ -0,0 +1,10 @@
+// error-pattern: can't refer to a module as a first-class value
+
+mod m1 {
+ mod a {
+ }
+}
+
+fn main(vec[str] args) {
+ log m1.a;
+}