Add a test

This commit is contained in:
Michael Goulet 2025-08-10 02:57:20 +00:00 committed by lcnr
parent 82ed949d2c
commit a89083b8ed

View file

@ -0,0 +1,14 @@
// Regression test for <https://github.com/rust-lang/rust/issues/145151>.
//@ edition: 2024
//@ check-pass
async fn process<'a>() {
Box::pin(process()).await;
}
fn require_send(_: impl Send) {}
fn main() {
require_send(process());
}