Skip to content

Commit

Permalink
Clean up E0704 error explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 25, 2020
1 parent 228a0ed commit 3e48aae
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 3e48aae

Please sign in to comment.