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 20e166e commit 6227d89Copy full SHA for 6227d89
compiler/rustc_error_codes/src/error_codes/E0577.md
@@ -3,14 +3,14 @@ Something other than a module was found in visibility scope.
3
Erroneous code example:
4
5
```compile_fail,E0577,edition2018
6
-pub struct sea;
+pub struct Sea;
7
8
-pub (in crate::sea) struct Shark; // error!
+pub (in crate::Sea) struct Shark; // error!
9
10
fn main() {}
11
```
12
13
-`sea` is not a module, therefore it is invalid to use it in a visibility path.
+`Sea` is not a module, therefore it is invalid to use it in a visibility path.
14
To fix this error we need to ensure `sea` is a module.
15
16
Please note that the visibility scope can only be applied on ancestors!
0 commit comments