2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-05-29 21:03:06 -05:00
|
|
|
use std::collections::HashMap;
|
2012-12-06 20:32:13 -06:00
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2015-02-17 14:41:32 -06:00
|
|
|
let x: Box<_>;
|
2015-03-25 19:06:52 -05:00
|
|
|
let mut buggy_map: HashMap<usize, &usize> = HashMap::new();
|
2022-07-06 21:36:10 -05:00
|
|
|
x = Box::new(1);
|
2013-01-22 19:20:08 -06:00
|
|
|
buggy_map.insert(42, &*x);
|
2012-12-06 20:32:13 -06:00
|
|
|
}
|