mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
remove redundant test
This commit is contained in:
@@ -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() {}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user