summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs
blob: 9eeee195e56e437e10be0d5b3b25e52fd6a4b8bb (plain)
1
2
3
4
5
6
7
8
9
fn f1<'a>(x: u8, y: &'a ...) {}
//~^ ERROR C-variadic type `...` may not be nested inside another type

fn f2<'a>(x: u8, y: Vec<&'a ...>) {}
//~^ ERROR C-variadic type `...` may not be nested inside another type

fn main() {
    let _recovery_witness: () = 0; //~ ERROR mismatched types
}