rust/src/test/run-fail/issue-2061.rs

16 lines
198 B
Rust
Raw Normal View History

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,
}
impl R : Drop {
fn finalize(&self) {
2012-11-01 18:20:45 -05:00
let _y = R { b: self.b };
}
}
fn main() {
let _x = R { b: 0 };
}