Skip to content

Commit 9fe8d86

Browse files
committed
accommodate new scoping rules in test/run-pass.
1 parent 86bde93 commit 9fe8d86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/run-pass/issue-3026.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ extern crate collections;
1717
use std::collections::HashMap;
1818

1919
pub fn main() {
20+
let x;
2021
let mut buggy_map: HashMap<uint, &uint> = HashMap::new();
21-
let x = box 1;
22+
x = box 1;
2223
buggy_map.insert(42, &*x);
2324
}

0 commit comments

Comments
 (0)