about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-02-20 20:18:53 +0100
committerGitHub <noreply@github.com>2020-02-20 20:18:53 +0100
commit362f6501f0664c0821ee1948cef8cf411c184930 (patch)
tree8a40628e232eb6b3e4567600747c9de13a78e2b5 /src/librustc_error_codes/error_codes
parent1facbb8578e2ae10d180418e6f89fae5fa960850 (diff)
parent90ebf93bdfe2acdaeb504a24dea27fbfd74e3218 (diff)
Rollup merge of #69311 - GuillaumeGomez:clean-up-e0321-e0322, r=Dylan-DPC
Clean up E0321 and E0322

r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0321.md4
-rw-r--r--src/librustc_error_codes/error_codes/E0322.md10
2 files changed, 13 insertions, 1 deletions
diff --git a/src/librustc_error_codes/error_codes/E0321.md b/src/librustc_error_codes/error_codes/E0321.md
index 49cec94430b..bfcdabfe9de 100644
--- a/src/librustc_error_codes/error_codes/E0321.md
+++ b/src/librustc_error_codes/error_codes/E0321.md
@@ -1,5 +1,7 @@
 A cross-crate opt-out trait was implemented on something which wasn't a struct
-or enum type. Erroneous code example:
+or enum type.
+
+Erroneous code example:
 
 ```compile_fail,E0321
 #![feature(optin_builtin_traits)]
diff --git a/src/librustc_error_codes/error_codes/E0322.md b/src/librustc_error_codes/error_codes/E0322.md
index d2ee426763e..ccef8681dd6 100644
--- a/src/librustc_error_codes/error_codes/E0322.md
+++ b/src/librustc_error_codes/error_codes/E0322.md
@@ -1,3 +1,13 @@
+The `Sized` trait was implemented explicitly.
+
+Erroneous code example:
+
+```compile_fail,E0322
+struct Foo;
+
+impl Sized for Foo {} // error!
+```
+
 The `Sized` trait is a special trait built-in to the compiler for types with a
 constant size known at compile-time. This trait is automatically implemented
 for types as needed by the compiler, and it is currently disallowed to