about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0749.md4
-rw-r--r--src/librustc_error_codes/error_codes/E0750.md4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0749.md b/src/librustc_error_codes/error_codes/E0749.md
new file mode 100644
index 00000000000..9eb8ee4e3fd
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0749.md
@@ -0,0 +1,4 @@
+Negative impls are not allowed to have any items. Negative impls
+declare that a trait is **not** implemented (and never will be) and
+hence there is no need to specify the values for trait methods or
+other items.
diff --git a/src/librustc_error_codes/error_codes/E0750.md b/src/librustc_error_codes/error_codes/E0750.md
new file mode 100644
index 00000000000..e0cf56f716f
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0750.md
@@ -0,0 +1,4 @@
+Negative impls cannot be default impls. A default impl supplies
+default values for the items within to be used by other impls, whereas
+a negative impl declares that there are no other impls. These don't
+make sense to combine.