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.
1 parent 53e59fa commit dc9c8d5Copy full SHA for dc9c8d5
src/doc/unstable-book/src/language-features/auto-traits.md
@@ -26,7 +26,8 @@ Example:
26
#![feature(negative_impls)]
27
#![feature(auto_traits)]
28
29
-auto trait Valid {}
+#[rustc_auto_trait]
30
+trait Valid {}
31
32
struct True;
33
struct False;
@@ -48,7 +49,7 @@ fn main() {
48
49
50
## Automatic trait implementations
51
-When a type is declared as an `auto trait`, we will automatically
52
+When a type is declared as an auto trait, we will automatically
53
create impls for every struct/enum/union, unless an explicit impl is
54
provided. These automatic impls contain a where clause for each field
55
of the form `T: AutoTrait`, where `T` is the type of the field and
0 commit comments