turn std::oldmap into a wrapper around LinearMap

This commit is contained in:
Daniel Micay 2013-03-22 21:15:28 -04:00
parent 28efc234f4
commit 11ca2efce1
3 changed files with 33 additions and 342 deletions

View file

@ -8,15 +8,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:fail
// xfail-test - issue #5512, fails but exits with 0
extern mod std;
use std::oldmap;
use std::oldmap::HashMap;
// error-pattern:fail
fn main() {
let count = @mut 0u;
let map = oldmap::HashMap();
let mut map = core::hashmap::linear::LinearMap::new();
let mut arr = ~[];
for uint::range(0u, 10u) |i| {
arr += ~[@~"key stuff"];