Skip to content

LLVM failure compiling borrow #3026

Closed
Closed
@nikomatsakis

Description

@nikomatsakis

An LLVM failure results from compiling this program:

use std;
import std::map::hashmap;
import std::map;

fn main() {
    let buggy_map :hashmap<uint, &uint> = hashmap::<uint, &uint>(uint::hash, uint::eq);
    let x = ~1;
    buggy_map.insert(42, x);
}

Metadata

Metadata

Assignees

Labels

A-codegenArea: Code generationA-lifetimesArea: Lifetimes / regionsI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions