We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35c56a6 + e095c71 commit 0386028Copy full SHA for 0386028
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 in a `pub` 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