Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add test
  • Loading branch information
lcnr committed Aug 13, 2025
commit 4d841497da34dbe1c51071d38b5b1c440ae308b7
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Regression test for #145288. This is the same issue as #145151
// which we fixed in #145194. However in that PR we accidentally created
// a `CoroutineWitness` which referenced all generic arguments of the
// coroutine, including upvars and the signature.

//@ edition: 2024
//@ check-pass

async fn process<'a>(x: &'a u32) {
Box::pin(process(x)).await;
}

fn require_send(_: impl Send) {}

fn main() {
require_send(process(&1));
}
Loading