Skip to content

Commit 96bef53

Browse files
Add a test
1 parent 588e526 commit 96bef53

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/145151>.
2+
3+
//@ edition: 2024
4+
//@ check-pass
5+
6+
async fn process<'a>() {
7+
Box::pin(process()).await;
8+
}
9+
10+
fn require_send(_: impl Send) {}
11+
12+
fn main() {
13+
require_send(process());
14+
}

0 commit comments

Comments
 (0)