mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
11 lines
382 B
Rust
11 lines
382 B
Rust
#![crate_type="lib"]
|
|
|
|
pub unsafe extern "C" fn test(_: i32, ap: ...) { }
|
|
//~^ ERROR C-variadic functions are unstable
|
|
|
|
trait Trait {
|
|
unsafe extern "C" fn trait_test(_: i32, ap: ...) { }
|
|
//~^ ERROR C-variadic functions are unstable
|
|
//~| ERROR defining functions with C-variadic arguments is only allowed for free functions with the "C" or "C-unwind" calling convention
|
|
}
|