Skip to content

Commit

Permalink
Add run-fail test for #2061
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Nov 1, 2012
1 parent 3edccc3 commit 0069bd2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/run-fail/issue-2061.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// error-pattern: ran out of stack
struct R {
b: int,
drop {
let _y = R { b: self.b };
}
}

fn main() {
let _x = R { b: 0 };
}

0 comments on commit 0069bd2

Please sign in to comment.