Skip to content

Commit

Permalink
Rollup merge of #73720 - GuillaumeGomez:cleanup-e0704, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Clean up E0704 error explanation

r? @Dylan-DPC
  • Loading branch information
Manishearth committed Jul 14, 2020
2 parents 03f565c + 3e48aae commit 5e61827
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_error_codes/error_codes/E0704.md
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 5e61827

Please sign in to comment.