remove redundant test
This commit is contained in:
parent
c916e8886b
commit
ed85f9846d
2 changed files with 0 additions and 20 deletions
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue