diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-06-25 13:19:56 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-06-25 13:19:56 +0200 |
| commit | 3e48aaea03aef6e6e7ac678d11995a2a39ba9d99 (patch) | |
| tree | 25f0532506d59ecb2a91e316d20a9268c018d253 | |
| parent | 228a0ed7b0cef2fbfeb781acf6c23015ccc40ba2 (diff) | |
| download | rust-3e48aaea03aef6e6e7ac678d11995a2a39ba9d99.tar.gz rust-3e48aaea03aef6e6e7ac678d11995a2a39ba9d99.zip | |
Clean up E0704 error explanation
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0704.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0704.md b/src/librustc_error_codes/error_codes/E0704.md index cde46f52c27..c22b274fb22 100644 --- a/src/librustc_error_codes/error_codes/E0704.md +++ b/src/librustc_error_codes/error_codes/E0704.md @@ -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 { |
