-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-codegenArea: Code generationArea: Code generationE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.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 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.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.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.