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() {
4
4
}
5
5
6
6
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"
8
8
} ;
9
9
}
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"
2
2
--> tests/fail/function_calls/check_arg_abi.rs:LL:CC
3
3
|
4
4
LL | 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"
6
6
|
7
7
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8
8
= 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