diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-3026.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-3026.rs b/src/test/ui/issues/issue-3026.rs new file mode 100644 index 000000000..1dea8134f --- /dev/null +++ b/src/test/ui/issues/issue-3026.rs @@ -0,0 +1,13 @@ +// run-pass +// pretty-expanded FIXME #23616 + +#![feature(box_syntax)] + +use std::collections::HashMap; + +pub fn main() { + let x: Box<_>; + let mut buggy_map: HashMap<usize, &usize> = HashMap::new(); + x = box 1; + buggy_map.insert(42, &*x); +} |