about summary refs log tree commit diff
path: root/tests/ui/c-variadic/no-closure.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/c-variadic/no-closure.rs')
-rw-r--r--tests/ui/c-variadic/no-closure.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/c-variadic/no-closure.rs b/tests/ui/c-variadic/no-closure.rs
index c0b77786e8b..a5b791fbca8 100644
--- a/tests/ui/c-variadic/no-closure.rs
+++ b/tests/ui/c-variadic/no-closure.rs
@@ -8,8 +8,7 @@ const F: extern "C" fn(...) = |_: ...| {};
 
 fn foo() {
     let f = |...| {};
-    //~^ ERROR: `..` patterns are not allowed here
-    //~| ERROR: unexpected `...`
+    //~^ ERROR: unexpected `...`
 
     let f = |_: ...| {};
     //~^ ERROR C-variadic type `...` may not be nested inside another type