1 Visibility is restricted to a module which isn't an ancestor of the current
4 Erroneous code example:
6 ```compile_fail,E0742,edition2018
9 pub (in crate::Sea) struct Shark; // error!
14 To fix this error, we need to move the `Shark` struct inside the `Sea` module:
18 pub (in crate::Sea) struct Shark; // ok!
24 Of course, you can do it as long as the module you're referring to is an
30 pub (in crate::Earth) struct Shark; // ok!