16 lines
193 B
Rust
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 };
|
|
}
|