Skip to content

Commit f0d9dd7

Browse files
committed
add a regression test
1 parent af2ce8b commit f0d9dd7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// regression test for <https://github.com/rust-lang/rust/issues/112788>
2+
//@ check-pass
3+
#![expect(incomplete_features)]
4+
#![feature(explicit_tail_calls)]
5+
6+
fn f(x: &mut ()) {
7+
let _y = String::new();
8+
become f(x);
9+
}
10+
11+
fn main() {}

0 commit comments

Comments
 (0)