mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 10:16:54 +00:00
8 lines
289 B
Rust
8 lines
289 B
Rust
//@ edition: 2021
|
|
#![feature(c_variadic)]
|
|
#![crate_type = "lib"]
|
|
|
|
async unsafe extern "C" fn cannot_be_async(x: isize, ...) {}
|
|
//~^ ERROR functions cannot be both `async` and C-variadic
|
|
//~| ERROR hidden type for `impl Future<Output = ()>` captures lifetime that does not appear in bounds
|