Closed
Description
This program ICEs:
#![feature(nll)]
struct Foo {
}
impl Foo {
fn method(&mut self, foo: &mut Foo) {
}
}
fn main() {
let mut foo = Foo { };
foo.method(&mut foo);
}
See also this conversation between @pnkfelix and I on gitter, which I believe to be relevant.
I'm refactoring some of this code, trying to explore the new NLL approach, so I will probably wind up fixing this. But obviously we should have this as a test!
cc @bobtwinkles
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Robbepop commentedon Apr 6, 2018
Is this similar to this ICE?
#49678
Add test from rust-lang#49736