summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-3026.rs
blob: 1dea8134fba2f2590f5bec54bdfb28b289d27708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}