mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 18:57:52 +00:00
11 lines
316 B
Rust
11 lines
316 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 associated functions cannot have a C variable argument list
|
|
}
|