]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0703.md
New upstream version 1.44.1+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0703.md
1 Invalid ABI (Application Binary Interface) used in the code.
2
3 Erroneous code example:
4
5 ```compile_fail,E0703
6 extern "invalid" fn foo() {} // error!
7 # fn main() {}
8 ```
9
10 At present few predefined ABI's (like Rust, C, system, etc.) can be
11 used in Rust. Verify that the ABI is predefined. For example you can
12 replace the given ABI from 'Rust'.
13
14 ```
15 extern "Rust" fn foo() {} // ok!
16 # fn main() { }
17 ```