mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 15:23:26 +03:00
Rollup merge of #70418 - PankajChaudhary5:master, r=Dylan-DPC
Add long error explanation for E0703 Add long explanation for the E0703 error code Part of #61137 r? @GuillaumeGomez
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
Invalid ABI (Application Binary Interface) used in the code.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0703
|
||||
extern "invalid" fn foo() {} // error!
|
||||
# fn main() {}
|
||||
```
|
||||
|
||||
At present few predefined ABI's (like Rust, C, system, etc.) can be
|
||||
used in Rust. Verify that the ABI is predefined. For example you can
|
||||
replace the given ABI from 'Rust'.
|
||||
|
||||
```
|
||||
extern "Rust" fn foo() {} // ok!
|
||||
# fn main() { }
|
||||
```
|
||||
Reference in New Issue
Block a user