aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-01-25 17:54:38 -0500
committerRafael Ávila de Espíndola <[email protected]>2011-01-25 17:54:38 -0500
commit9e2324ad1e3f2abf528fbbbdafe2cb8a18c3151d (patch)
tree615761fcdd6398a35d24c07418ded85751a87e91 /src/test/compile-fail
parentUn-XFAIL a couple more rustc tests that have started working recently. (diff)
downloadrust-9e2324ad1e3f2abf528fbbbdafe2cb8a18c3151d.tar.xz
rust-9e2324ad1e3f2abf528fbbbdafe2cb8a18c3151d.zip
Small first step in expr_path. Call find_final_def just to detect
unresolved names. find_final_def is going to be extended to return the final expr.
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/bad-expr-path.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/compile-fail/bad-expr-path.rs b/src/test/compile-fail/bad-expr-path.rs
new file mode 100644
index 00000000..97c95c01
--- /dev/null
+++ b/src/test/compile-fail/bad-expr-path.rs
@@ -0,0 +1,8 @@
+// error-pattern: unresolved name: a
+
+mod m1 {
+}
+
+fn main(vec[str] args) {
+ log m1.a;
+}