accommodate new scoping rules in test/run-pass.

This commit is contained in:
Felix S. Klock II 2015-01-26 15:16:16 +01:00
parent 86bde933f8
commit 9fe8d8602d

View file

@ -17,7 +17,8 @@ extern crate collections;
use std::collections::HashMap;
pub fn main() {
let x;
let mut buggy_map: HashMap<uint, &uint> = HashMap::new();
let x = box 1;
x = box 1;
buggy_map.insert(42, &*x);
}