2012-11-01 19:13:59 -05:00
|
|
|
// xfail-test
|
2012-11-01 18:20:45 -05:00
|
|
|
// error-pattern: ran out of stack
|
|
|
|
struct R {
|
|
|
|
b: int,
|
2012-11-14 00:22:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
impl R : Drop {
|
2012-11-28 17:42:16 -06:00
|
|
|
fn finalize(&self) {
|
2012-11-01 18:20:45 -05:00
|
|
|
let _y = R { b: self.b };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _x = R { b: 0 };
|
|
|
|
}
|