Skip to content

Commit 6227d89

Browse files
committed
E0577 fixed Sea struct CamelCase/sea module snake_case
1 parent 20e166e commit 6227d89

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+3
-3
lines changed

compiler/rustc_error_codes/src/error_codes/E0577.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ Something other than a module was found in visibility scope.
33
Erroneous code example:
44

55
```compile_fail,E0577,edition2018
6-
pub struct sea;
6+
pub struct Sea;
77
8-
pub (in crate::sea) struct Shark; // error!
8+
pub (in crate::Sea) struct Shark; // error!
99
1010
fn main() {}
1111
```
1212

13-
`sea` is not a module, therefore it is invalid to use it in a visibility path.
13+
`Sea` is not a module, therefore it is invalid to use it in a visibility path.
1414
To fix this error we need to ensure `sea` is a module.
1515

1616
Please note that the visibility scope can only be applied on ancestors!

0 commit comments

Comments
 (0)