diff options
Diffstat (limited to 'tests/ui/resolve/bad-expr-path2.rs')
-rw-r--r-- | tests/ui/resolve/bad-expr-path2.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/resolve/bad-expr-path2.rs b/tests/ui/resolve/bad-expr-path2.rs new file mode 100644 index 000000000..eb88edb90 --- /dev/null +++ b/tests/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` +} |