Skip to content

rp.is_none ICE failure with 'self lifetime #9661

Closed
@nwin

Description

@nwin

I was just playing around.

Compiling

use std::hashmap::HashMap;
fn main() {
    let mut env: HashMap<&'self str, &'self str> = HashMap::new();
}

with $ RUST_LOG=rustc=1 rust build test.rs gives

error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', /Users/nwin/rust-0.8/src/librustc/rustc.rs:391

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