accommodate new scoping rules in test/run-pass.
This commit is contained in:
parent
86bde933f8
commit
9fe8d8602d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user