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