diff --git a/src/test/run-pass/issue-3026.rs b/src/test/run-pass/issue-3026.rs index cd71bfce274..25663f2605f 100644 --- a/src/test/run-pass/issue-3026.rs +++ b/src/test/run-pass/issue-3026.rs @@ -17,7 +17,8 @@ extern crate collections; use std::collections::HashMap; pub fn main() { + let x; let mut buggy_map: HashMap = HashMap::new(); - let x = box 1; + x = box 1; buggy_map.insert(42, &*x); }