summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/bad-expr-path2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/resolve/bad-expr-path2.rs')
-rw-r--r--src/test/ui/resolve/bad-expr-path2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/resolve/bad-expr-path2.rs b/src/test/ui/resolve/bad-expr-path2.rs
new file mode 100644
index 000000000..eb88edb90
--- /dev/null
+++ b/src/test/ui/resolve/bad-expr-path2.rs
@@ -0,0 +1,10 @@
+mod m1 {
+ pub mod arguments {}
+}
+
+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 expected value, found module `m1::arguments`
+}