Add run-fail test for #2061

This commit is contained in:
Tim Chevalier 2012-11-01 16:20:45 -07:00
parent 3edccc311e
commit 0069bd2f46

View file

@ -0,0 +1,11 @@
// error-pattern: ran out of stack
struct R {
b: int,
drop {
let _y = R { b: self.b };
}
}
fn main() {
let _x = R { b: 0 };
}