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 f10e8eb commit d3e48d1Copy full SHA for d3e48d1
src/attributes/type_system.md
@@ -38,12 +38,12 @@ The *`non_exhaustive` attribute* indicates that a type or variant may have more
38
> }
39
> ```
40
41
-r[attributes.type-system.non_exhaustive.allowed-positions]
42
-It can be applied to [`struct`s][struct], [`enum`s][enum], and `enum` variants.
43
-
44
r[attributes.type-system.non_exhaustive.syntax]
45
The `non_exhaustive` attribute uses the [MetaWord] syntax and thus does not take any inputs.
46
+r[attributes.type-system.non_exhaustive.allowed-positions]
+It can be applied to [`struct`s][struct], [`enum`s][enum], and `enum` variants.
+
47
r[attributes.type-system.non_exhaustive.same-crate]
48
Within the defining crate, `non_exhaustive` has no effect.
49
0 commit comments