about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-28 15:21:57 +0100
committerGitHub <noreply@github.com>2020-03-28 15:21:57 +0100
commit1f13089bef91e8410bca87b2f42e6fbbc2bbfd9e (patch)
tree50053c59733380d866fe646832a14a2eb0f3b5e0 /src/librustc_error_codes/error_codes
parentb9d5ee567652cd342d9348c215009049551747b0 (diff)
parentc09b5a3ed37a229408831f9b00f0d53ef6d8b938 (diff)
downloadrust-1f13089bef91e8410bca87b2f42e6fbbc2bbfd9e.tar.gz
rust-1f13089bef91e8410bca87b2f42e6fbbc2bbfd9e.zip
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
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0703.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0703.md b/src/librustc_error_codes/error_codes/E0703.md
new file mode 100644
index 00000000000..b42677d52cb
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0703.md
@@ -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() { }
+```