summaryrefslogtreecommitdiffstats
path: root/tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr')
-rw-r--r--tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr b/tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr
new file mode 100644
index 000000000..e11ba43ca
--- /dev/null
+++ b/tests/ui/c-variadic/variadic-ffi-no-fixed-args.stderr
@@ -0,0 +1,8 @@
+error: C-variadic function must be declared with at least one named argument
+ --> $DIR/variadic-ffi-no-fixed-args.rs:2:12
+ |
+LL | fn foo(...);
+ | ^^^
+
+error: aborting due to previous error
+