-
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
There is an ICE from the check_static
pass, due to a match that has a bunch of cases that lead to unreachable!
. I think this particular case is the mc::cat_local
.
here is the test case (this code is meant to be rejected, but not ICE):
pub fn main() {
static x : int = 3i;
let y = {
static z: Box<&'static int> = {
let p = x;
let a = &p;
box a
};
z
};
}
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.