Skip to content

Commit 0069bd2

Browse files
committed
Add run-fail test for #2061
1 parent 3edccc3 commit 0069bd2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// error-pattern: ran out of stack
2+
struct R {
3+
b: int,
4+
drop {
5+
let _y = R { b: self.b };
6+
}
7+
}
8+
9+
fn main() {
10+
let _x = R { b: 0 };
11+
}

0 commit comments

Comments
 (0)