remove redundant test

This commit is contained in:
Esteban Küber 2025-09-16 11:21:29 -07:00
parent c916e8886b
commit ed85f9846d
2 changed files with 0 additions and 20 deletions

View file

@ -1,10 +0,0 @@
// var-args are not supported in closures, ensure we don't misdirect people (#146489)
#![feature(c_variadic)]
unsafe extern "C" fn thats_not_a_pattern(mut ap: ...) -> u32 {
let mut lol = |...| (); //~ ERROR: unexpected `...`
unsafe { ap.arg::<u32>() } //~^ NOTE: C-variadic type `...` is not allowed here
//~| NOTE: not a valid pattern
}
fn main() {}

View file

@ -1,10 +0,0 @@
error: unexpected `...`
--> $DIR/varargs-in-closure-isnt-supported.rs:5:20
|
LL | let mut lol = |...| ();
| ^^^ not a valid pattern
|
= note: C-variadic type `...` is not allowed here
error: aborting due to 1 previous error