Skip to content

Cross-crate regions in statics ICE #8259

Closed
@alexcrichton

Description

@alexcrichton

This code:

// test.rs
extern mod other;
static a: other::Foo<'static> = other::A;

fn main() {}

// other.rs
pub enum Foo<'self> {
    A,
    B(&'self str),
}

Causes the ICE

test.rs:2:32: 2:40 error: internal compiler error: Cannot relate bound region as superregion: br_self
test.rs:2 static a: other::Foo<'static> = other::A;
                                          ^~~~~~~~

cc @nikomatsakis

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions