]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/variadic-ffi-nested-syntactic-fail.rs
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[rust.git] / src / test / ui / parser / variadic-ffi-nested-syntactic-fail.rs
1 fn f1<'a>(x: u8, y: &'a ...) {}
2 //~^ ERROR C-variadic type `...` may not be nested inside another type
3
4 fn f2<'a>(x: u8, y: Vec<&'a ...>) {}
5 //~^ ERROR C-variadic type `...` may not be nested inside another type
6
7 fn main() {
8     let _recovery_witness: () = 0; //~ ERROR mismatched types
9 }