about summary refs log tree commit diff
path: root/tests/ui/async-await/recursive-async-auto-trait-overflow.rs
blob: 716600ce4727893e534f801adc57ef9a20ea09ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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());
}