Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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