Skip to content

run-fail/unwind-misc-1 fails but exits with 0 when core::hashmap is used #5512

Closed
@thestinger

Description

@thestinger
fn main() {
    let count = @mut 0u;
    let mut map = core::hashmap::linear::LinearMap::new();
    let mut arr = ~[];
    for uint::range(0u, 10u) |i| {
        arr += ~[@~"key stuff"];
        map.insert(copy arr, arr + ~[@~"value stuff"]);
        if arr.len() == 5 {
            fail!();
        }
    }
}

This is similar to #4547, but it could be a different issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions