Add a test
This commit is contained in:
parent
82ed949d2c
commit
a89083b8ed
1 changed files with 14 additions and 0 deletions
14
tests/ui/async-await/recursive-async-auto-trait-overflow.rs
Normal file
14
tests/ui/async-await/recursive-async-auto-trait-overflow.rs
Normal 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());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue