We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1a2ab8 commit 8323185Copy full SHA for 8323185
src/doc/reference.md
@@ -1731,7 +1731,8 @@ of an item to see whether it should be allowed or not. This is where privacy
1731
warnings are generated, or otherwise "you used a private item of another module
1732
and weren't allowed to."
1733
1734
-By default, everything in Rust is *private*, with one exception. Enum variants
+By default, everything in Rust is *private*, with two exceptions: Associated
1735
+items of a Trait are public by default; Enum variants
1736
in a `pub` enum are also public by default. When an item is declared as `pub`,
1737
it can be thought of as being accessible to the outside world. For example:
1738
0 commit comments