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

13 lines
165 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,
drop {
let _y = R { b: self.b };
}
}
fn main() {
let _x = R { b: 0 };
}