Skip to content

Commit

Permalink
Rollup merge of rust-lang#73720 - GuillaumeGomez:cleanup-e0704, r=Dyl…
Browse files Browse the repository at this point in the history
…an-DPC

Clean up E0704 error explanation

r? @Dylan-DPC
  • Loading branch information
Manishearth committed Jul 14, 2020
2 parents 6dda1d4 + 3e48aae commit ac01a53
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 ac01a53

Please sign in to comment.