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

16 lines
193 B
Rust
Raw Normal View History

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,
}
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 };
}