rust/tests/ui/delegation/auxiliary/fn-header-aux.rs
Vadim Petrochenkov 7b7c26f09b delegation: Support async, const, extern "ABI" and C-variadic functions
Also allow `impl Trait` in delegated functions.
The delegation item will refer to the original opaque type from the callee, fresh opaque type won't be created.
2024-04-23 23:05:39 +03:00

10 lines
259 B
Rust

//@ edition:2018
#![feature(c_variadic)]
pub unsafe fn unsafe_fn_extern() {}
pub extern "C" fn extern_fn_extern() {}
pub unsafe extern "C" fn variadic_fn_extern(n: usize, mut args: ...) {}
pub const fn const_fn_extern() {}
pub async fn async_fn_extern() {}