Closed
Description
This program:
struct A {
bar: @mut ~[int],
}
impl A {
fn foo(&self) -> int {
match 3 {
_ => if true {
fail!()
} else {
*self.bar.last() // bug is from this line
}
}
}
}
fn main() {}
Causes this output:
$ rustc foo.rs
error: internal compiler error: no enclosing scope with id 31
I tried minimizing it further, but I was unable to get it any smaller.