blob: 9d1c0f5a34122df3b8c5be0d858e2fb31c967c2f [file] [log] [blame] [edit]
//@ run-pass
//@ pretty-expanded FIXME #23616
use std::collections::HashMap;
pub fn main() {
let x: Box<_>;
let mut buggy_map: HashMap<usize, &usize> = HashMap::new();
x = Box::new(1);
buggy_map.insert(42, &*x);
}