rust/src/test/run-fail/issue-2061.rs
2012-11-14 19:26:37 -08:00

16 lines
193 B
Rust

// xfail-test
// error-pattern: ran out of stack
struct R {
b: int,
}
impl R : Drop {
fn finalize() {
let _y = R { b: self.b };
}
}
fn main() {
let _x = R { b: 0 };
}