rust/src/test/ui/parser/variadic-ffi-nested-syntactic-fail.rs
Mazdak Farrokhzad 74d4fbc5f5 De-fatalize ... parsing.
Also fix error the code description.
2019-12-12 18:05:05 +01:00

10 lines
289 B
Rust

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
}