blob: 88d91dbd081fb730154382a6800dbdd652246f2b (
plain)
1
2
3
4
5
6
7
8
9
10
|
#![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
}
|