summaryrefslogtreecommitdiffstats
path: root/tests/ui/c-variadic/variadic-ffi-6.rs
blob: 4dd8a2d452181eeaadccadf32590799ce627b972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_type="lib"]
#![feature(c_variadic)]

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
}