]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/miri/tests/fail/function_calls/exported_symbol_abi_mismatch.rs
Rollup merge of #104439 - ferrocene:pa-generate-copyright, r=pnkfelix
[rust.git] / src / tools / miri / tests / fail / function_calls / exported_symbol_abi_mismatch.rs
index dbf72b5b61ad932b7bd5792cf1b5623f9ea4f9ae..50a0e8e6edef8e551c36a89056c9d52212501c55 100644 (file)
@@ -12,7 +12,7 @@ fn main() {
     #[cfg(fn_ptr)]
     unsafe {
         std::mem::transmute::<unsafe fn(), unsafe extern "C" fn()>(foo)();
-        //[fn_ptr]~^ ERROR: calling a function with calling convention Rust using calling convention C
+        //~[fn_ptr]^ ERROR: calling a function with calling convention Rust using calling convention C
     }
 
     // `Instance` caching should not suppress ABI check.
@@ -28,8 +28,8 @@ fn main() {
         }
         unsafe {
             foo();
-            //[no_cache]~^ ERROR: calling a function with calling convention Rust using calling convention C
-            //[cache]~| ERROR: calling a function with calling convention Rust using calling convention C
+            //~[no_cache]^ ERROR: calling a function with calling convention Rust using calling convention C
+            //~[cache]| ERROR: calling a function with calling convention Rust using calling convention C
         }
     }
 }