Add run-fail test for #2061
This commit is contained in:
parent
3edccc311e
commit
0069bd2f46
1 changed files with 11 additions and 0 deletions
11
src/test/run-fail/issue-2061.rs
Normal file
11
src/test/run-fail/issue-2061.rs
Normal file
|
|
@ -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 };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue