We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af2ce8b commit 83339bfCopy full SHA for 83339bf
tests/crashes/128097.rs
tests/ui/explicit-tail-calls/two-phase.rs
@@ -0,0 +1,14 @@
1
+// regression test for <https://github.com/rust-lang/rust/issues/112788>.
2
+// this test used to ICE because we tried to run drop glue of `x`
3
+// if dropping `_y` (happening at the `become` site) panicked and caused an unwind.
4
+//
5
+//@ check-pass
6
+#![expect(incomplete_features)]
7
+#![feature(explicit_tail_calls)]
8
+
9
+fn f(x: &mut ()) {
10
+ let _y = String::new();
11
+ become f(x);
12
+}
13
14
+fn main() {}
0 commit comments