about summary refs log tree commit diff
path: root/tests/codegen-units/item-collection/async-fn-impl.rs
blob: 540fa0b322812e7343e6b5bb058ff56029c9d7a4 (plain)
1
2
3
4
5
6
7
8
9
10
//@ edition: 2024
// When pub async fn is monomorphized, its implementation coroutine is also monomorphized
//@ compile-flags: --crate-type=lib

//~ MONO_ITEM fn async_fn @@
//~ MONO_ITEM fn async_fn::{closure#0} @@
#[unsafe(no_mangle)]
pub async fn async_fn(x: u64) -> bool {
    true
}