We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1facbb8 + 90ebf93 commit 362f650Copy full SHA for 362f650
src/librustc_error_codes/error_codes/E0321.md
@@ -1,5 +1,7 @@
1
A cross-crate opt-out trait was implemented on something which wasn't a struct
2
-or enum type. Erroneous code example:
+or enum type.
3
+
4
+Erroneous code example:
5
6
```compile_fail,E0321
7
#![feature(optin_builtin_traits)]
src/librustc_error_codes/error_codes/E0322.md
@@ -1,3 +1,13 @@
+The `Sized` trait was implemented explicitly.
+```compile_fail,E0322
+struct Foo;
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