Skip to content

Commit e417180

Browse files
authored
Update error_codes.rs
1 parent 3d88f2c commit e417180

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_resolve/error_codes.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct Foo<U = (), T = U> {
2626
}
2727
```
2828
29-
Please also verify that this wasn't because of a name-clash and rename the type
29+
Please also verify \hat this wasn't because of a name-clash and rename the type
3030
parameter if so.
3131
"##,
3232

@@ -1674,8 +1674,8 @@ pub (in crate::Sea) struct Shark; // error!
16741674
fn main() {}
16751675
```
16761676
1677-
`Sea` is not a module, therefore, it is invalid. To fix this error, we need to
1678-
replace `Sea` with a module.
1677+
`Sea` is not a module, therefore it is invalid to use it in a visibility path.
1678+
To fix this error we need to ensure `Sea` is a module.
16791679
16801680
Please note that the visibility scope can only be applied on ancestors!
16811681

0 commit comments

Comments
 (0)