File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tests/fail/function_calls Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ fn main() {
44 }
55
66 unsafe {
7- let _ = malloc ( 0 ) ; //~ ERROR: calling a function with ABI C using caller ABI Rust
7+ let _ = malloc ( 0 ) ; //~ ERROR: calling a function with calling convention "C" using caller calling convention " Rust"
88 } ;
99}
Original file line number Diff line number Diff line change 1- error: Undefined Behavior: calling a function with ABI C using caller ABI Rust
1+ error: Undefined Behavior: calling a function with calling convention "C" using caller calling convention " Rust"
22 --> tests/fail/function_calls/check_arg_abi.rs:LL:CC
33 |
44LL | let _ = malloc(0);
5- | ^^^^^^^^^ calling a function with ABI C using caller ABI Rust
5+ | ^^^^^^^^^ calling a function with calling convention "C" using caller calling convention " Rust"
66 |
77 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
You can’t perform that action at this time.
0 commit comments