1
Fork 0

Drop slots on block exits even when blocks have no statements. Part way to fixing bind leakage in rustc.

This commit is contained in:
Graydon Hoare 2010-09-30 16:10:30 -07:00
parent f6e3e6903b
commit 62c224ffe4
7 changed files with 156 additions and 90 deletions

View file

@ -0,0 +1,11 @@
tag t {
foo(@int);
}
fn main() {
auto tt = foo(@10);
alt (tt) {
case (foo(?z)) {
}
}
}