summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0045.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0045.stderr')
-rw-r--r--src/test/ui/error-codes/E0045.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0045.stderr b/src/test/ui/error-codes/E0045.stderr
new file mode 100644
index 000000000..d163128bc
--- /dev/null
+++ b/src/test/ui/error-codes/E0045.stderr
@@ -0,0 +1,9 @@
+error[E0045]: C-variadic function must have C or cdecl calling convention
+ --> $DIR/E0045.rs:1:17
+ |
+LL | extern "Rust" { fn foo(x: u8, ...); }
+ | ^^^^^^^^^^^^^^^^^^^ C-variadics require C or cdecl calling convention
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0045`.