Skip to content

ICE: Cannot relate bound region with extern mod #11529

Closed
@klutzy

Description

@klutzy
Contributor

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

Activity

jfager

jfager commented on Mar 5, 2014

@jfager
Contributor

This doesn't appear to be a problem anymore, can this be closed?

alexcrichton

alexcrichton commented on Mar 5, 2014

@alexcrichton
Member

Flagging as needstest.

added a commit that references this issue on Mar 6, 2014
13e10f5
added a commit that references this issue on Mar 6, 2014

auto merge of #12738 : alexcrichton/rust/needstest, r=brson,just

0e95b08
added a commit that references this issue on Mar 17, 2024

Auto merge of rust-lang#16808 - ShoyuVanilla:proc-macro-sem-token, r=…

2f87215
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @jfager@alexcrichton@klutzy

      Issue actions

        ICE: `Cannot relate bound region` with `extern mod` · Issue #11529 · rust-lang/rust