Skip to content

ICE: Cannot relate bound region with extern mod #11529

Closed
@klutzy

Description

@klutzy

a.rs:

#[crate_type = "rlib"];
pub struct A<'a>(&'a int);

b.rs:

extern mod a;
fn main() {
    let one = 1;
    let _a = a::A(&one);
}
b.rs:5:19: 5:23 error: internal compiler error: Cannot relate bound region: ReEarlyBound(12, 0, a) <= ReInfer(1)
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
b.rs:5     let _a = a::A(&one);
                         ^~~~

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