summaryrefslogtreecommitdiffstats
path: root/src/test/ui/blind/blind-item-block-middle.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/blind/blind-item-block-middle.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/blind/blind-item-block-middle.rs b/src/test/ui/blind/blind-item-block-middle.rs
new file mode 100644
index 000000000..6cd3f3bd4
--- /dev/null
+++ b/src/test/ui/blind/blind-item-block-middle.rs
@@ -0,0 +1,9 @@
+#![allow(non_camel_case_types)]
+
+mod foo { pub struct bar; }
+
+fn main() {
+ let bar = 5;
+ //~^ ERROR mismatched types
+ use foo::bar;
+}