]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/variadic-ffi-nested-syntactic-fail.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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 }