Closed
Description
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);
^~~~