summaryrefslogtreecommitdiffstats
path: root/src/test/ui/shadowed-use-visibility.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/shadowed-use-visibility.rs')
-rw-r--r--src/test/ui/shadowed-use-visibility.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/shadowed-use-visibility.rs b/src/test/ui/shadowed-use-visibility.rs
new file mode 100644
index 000000000..350fbfeae
--- /dev/null
+++ b/src/test/ui/shadowed-use-visibility.rs
@@ -0,0 +1,13 @@
+// run-pass
+
+#![allow(unused_imports)]
+mod foo {
+ pub fn f() {}
+
+ pub use self::f as bar;
+ use foo as bar;
+}
+
+fn main() {
+ foo::bar();
+}