Rollup merge of #73720 - GuillaumeGomez:cleanup-e0704, r=Dylan-DPC

Clean up E0704 error explanation

r? @Dylan-DPC
This commit is contained in:
Manish Goregaokar 2020-07-14 07:38:53 -07:00 committed by GitHub
commit 5e61827dd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
This error indicates that a incorrect visibility restriction was specified.
An incorrect visibility restriction was specified.
Example of erroneous code:
Erroneous code example:
```compile_fail,E0704
mod foo {
@ -12,6 +12,7 @@ mod foo {
To make struct `Bar` only visible in module `foo` the `in` keyword should be
used:
```
mod foo {
pub(in crate::foo) struct Bar {