summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/bad-expr-path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/resolve/bad-expr-path.rs')
-rw-r--r--src/test/ui/resolve/bad-expr-path.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/resolve/bad-expr-path.rs b/src/test/ui/resolve/bad-expr-path.rs
new file mode 100644
index 000000000..31fc9cf2c
--- /dev/null
+++ b/src/test/ui/resolve/bad-expr-path.rs
@@ -0,0 +1,8 @@
+mod m1 {}
+
+fn main(arguments: Vec<String>) { //~ ERROR `main` function has wrong type
+ log(debug, m1::arguments);
+ //~^ ERROR cannot find function `log` in this scope
+ //~| ERROR cannot find value `debug` in this scope
+ //~| ERROR cannot find value `arguments` in module `m1`
+}