summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/import2.rs')
-rw-r--r--tests/ui/imports/import2.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/imports/import2.rs b/tests/ui/imports/import2.rs
new file mode 100644
index 000000000..036d6bc07
--- /dev/null
+++ b/tests/ui/imports/import2.rs
@@ -0,0 +1,10 @@
+use baz::zed::bar; //~ ERROR unresolved import `baz::zed` [E0432]
+ //~^ could not find `zed` in `baz`
+
+mod baz {}
+mod zed {
+ pub fn bar() { println!("bar3"); }
+}
+fn main() {
+ bar();
+}