-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
This code
trait A {}
struct B;
impl A for B {}
struct C<'self> {
foo: &'self mut A,
}
fn foo(a: &mut A) {
C{ foo: a };
}
fn main() {
}
fails with this message:
foo.rs:10:12: 10:13 error: internal compiler error: Cannot relate bound region as subregion: br_self
foo.rs:10 C{ foo: a };
^
cc @msullivan
Metadata
Metadata
Assignees
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.