mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:34:52 -06:00
@@ -275,7 +275,7 @@ errors, then compile to see if you’re right and use the privacy rules to
|
|||||||
understand why.
|
understand why.
|
||||||
|
|
||||||
* What if the `inside` module was public?
|
* What if the `inside` module was public?
|
||||||
* What if `outside` was public and `inside` was private?
|
* What if `outermost` was public and `inside` was private?
|
||||||
* What if, in the body of `inner_function`, you called
|
* What if, in the body of `inner_function`, you called
|
||||||
`::outermost::middle_secret_function()`? (The two colons at the beginning
|
`::outermost::middle_secret_function()`? (The two colons at the beginning
|
||||||
mean that we want to refer to the namespaces starting from the root
|
mean that we want to refer to the namespaces starting from the root
|
||||||
|
|||||||
Reference in New Issue
Block a user