summaryrefslogtreecommitdiffstats
path: root/src/test/ui/blind-item-local-shadow.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/blind-item-local-shadow.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/blind-item-local-shadow.rs b/src/test/ui/blind-item-local-shadow.rs
new file mode 100644
index 000000000..942aeb6fd
--- /dev/null
+++ b/src/test/ui/blind-item-local-shadow.rs
@@ -0,0 +1,13 @@
+// run-pass
+
+#![allow(dead_code)]
+#![allow(unused_imports)]
+mod bar {
+ pub fn foo() -> bool { true }
+}
+
+fn main() {
+ let foo = || false;
+ use bar::foo;
+ assert_eq!(foo(), false);
+}