about summary refs log tree commit diff
path: root/tests/ui/c-variadic
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-06-22 23:19:19 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-06-22 23:30:31 -0700
commit43a6b018a2a7a68686adda1220ebf07194ed11fc (patch)
treed6d494b8c5e293b8226f3f96a364097cc817d01a /tests/ui/c-variadic
parent26dccadb476aaafa0930e6036c5583eea2c052e1 (diff)
downloadrust-43a6b018a2a7a68686adda1220ebf07194ed11fc.tar.gz
rust-43a6b018a2a7a68686adda1220ebf07194ed11fc.zip
compiler: Mention C-unwind in C-variadic error
Diffstat (limited to 'tests/ui/c-variadic')
-rw-r--r--tests/ui/c-variadic/issue-86053-1.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/c-variadic/issue-86053-1.stderr b/tests/ui/c-variadic/issue-86053-1.stderr
index 69e19e1d4d2..67a619e46d5 100644
--- a/tests/ui/c-variadic/issue-86053-1.stderr
+++ b/tests/ui/c-variadic/issue-86053-1.stderr
@@ -46,7 +46,7 @@ error: `...` must be the last argument of a C-variadic function
 LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {
    |            ^^^
 
-error: only foreign or `unsafe extern "C"` functions may be C-variadic
+error: only foreign, `unsafe extern "C"`, or `unsafe extern "C-unwind"` functions may have a C-variadic arg
   --> $DIR/issue-86053-1.rs:11:12
    |
 LL |     self , ... ,   self ,   self , ... ) where F : FnOnce ( & 'a & 'b usize ) {