We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3edccc3 commit 0069bd2Copy full SHA for 0069bd2
src/test/run-fail/issue-2061.rs
@@ -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