We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6b5f87 commit 90ebf93Copy full SHA for 90ebf93
src/librustc_error_codes/error_codes/E0322.md
@@ -1,3 +1,13 @@
1
+The `Sized` trait was implemented explicitly.
2
+
3
+Erroneous code example:
4
5
+```compile_fail,E0322
6
+struct Foo;
7
8
+impl Sized for Foo {} // error!
9
+```
10
11
The `Sized` trait is a special trait built-in to the compiler for types with a
12
constant size known at compile-time. This trait is automatically implemented
13
for types as needed by the compiler, and it is currently disallowed to
0 commit comments