Sign in
rust
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
c-variadic
/
variadic-ffi-6.rs
blob: fd5a6db03b49c8bb21d203d22ab170f166dac6c6 [
file
] [
edit
]
#![
crate_type
=
"lib"
]
pub
unsafe
extern
"C"
fn
use_vararg_lifetime
(
x
:
usize
,
y
:
...)
->
&
usize
{
//~^ ERROR missing lifetime specifier
&
0
}
pub
unsafe
extern
"C"
fn
use_normal_arg_lifetime
(
x
:
&
usize
,
y
:
...)
->
&
usize
{
// OK
x
}