about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-16 04:07:07 +0000
committerbors <bors@rust-lang.org>2015-09-16 04:07:07 +0000
commit0f1f5fc746919b15e619cfcfd4cd939ef47f58bd (patch)
treeeaa945c1be5e37dc62c3da612c2759dc905343f8
parent405f8f1f2566acfeb252cb5a9c8e87ea987b5fa7 (diff)
parent4e25329c5ed78edfb07240b038801a601183a7aa (diff)
downloadrust-0f1f5fc746919b15e619cfcfd4cd939ef47f58bd.tar.gz
rust-0f1f5fc746919b15e619cfcfd4cd939ef47f58bd.zip
Auto merge of #28417 - apasel422:issue-23036, r=arielb1
Closes #23036.
-rw-r--r--src/test/run-pass/issue-23036.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-23036.rs b/src/test/run-pass/issue-23036.rs
new file mode 100644
index 00000000000..0ed4126e6cd
--- /dev/null
+++ b/src/test/run-pass/issue-23036.rs
@@ -0,0 +1,18 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+use std::collections::HashMap;
+use std::path::Path;
+
+fn main() {
+    let mut map = HashMap::new();
+    map.insert(Path::new("a"), 0);
+    map.get(Path::new("a"));
+}