summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-5521.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-5521.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-5521.rs b/src/test/ui/issues/issue-5521.rs
new file mode 100644
index 000000000..cafdbc399
--- /dev/null
+++ b/src/test/ui/issues/issue-5521.rs
@@ -0,0 +1,17 @@
+// run-pass
+#![allow(dead_code)]
+// aux-build:issue-5521.rs
+
+
+
+extern crate issue_5521 as foo;
+
+fn bar(a: foo::map) {
+ if false {
+ panic!();
+ } else {
+ let _b = &(*a)[&2];
+ }
+}
+
+fn main() {}