2019-12-08 05:32:58 +00:00
|
|
|
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
|
|
|
|
|
2024-06-01 16:39:03 +00:00
|
|
|
// Regression test for issue #125847.
|
|
|
|
fn f3() where for<> ...: {}
|
|
|
|
//~^ ERROR C-variadic type `...` may not be nested inside another type
|
|
|
|
|
2019-12-08 05:32:58 +00:00
|
|
|
fn main() {
|
2023-10-18 08:47:17 +00:00
|
|
|
let _recovery_witness: () = 0;
|
2024-02-09 12:17:55 +00:00
|
|
|
//~^ ERROR: mismatched types
|
2019-12-08 05:32:58 +00:00
|
|
|
}
|