about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2020-08-28 10:23:57 +0200
committerGitHub <noreply@github.com>2020-08-28 10:23:57 +0200
commitbc553136c731db2038c4a7ebf7cb37b94c962813 (patch)
tree5604ef35b4b947a8ab8bf339e7ad68373c0ae94b /src/librustc_error_codes/error_codes
parent521b2054b64d4c4fd7eac28f1158dbb630eb7657 (diff)
parentc73d4cddcc828a0822c29bf8649db3f5eb35c5ec (diff)
downloadrust-bc553136c731db2038c4a7ebf7cb37b94c962813.tar.gz
rust-bc553136c731db2038c4a7ebf7cb37b94c962813.zip
Rollup merge of #75941 - GuillaumeGomez:cleanup-e0761, r=Dylan-DPC
Clean up E0761 explanation

r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0761.md10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/librustc_error_codes/error_codes/E0761.md b/src/librustc_error_codes/error_codes/E0761.md
index c01574e413c..e112674fbcc 100644
--- a/src/librustc_error_codes/error_codes/E0761.md
+++ b/src/librustc_error_codes/error_codes/E0761.md
@@ -2,24 +2,20 @@ Multiple candidate files were found for an out-of-line module.
 
 Erroneous code example:
 
-```rust
+```ignore (multiple source files required for compile_fail)
 // file: ambiguous_module/mod.rs
 
 fn foo() {}
-```
 
-```rust
 // file: ambiguous_module.rs
 
 fn foo() {}
-```
 
-```ignore (multiple source files required for compile_fail)
+// file: lib.rs
+
 mod ambiguous_module; // error: file for module `ambiguous_module`
                       // found at both ambiguous_module.rs and
                       // ambiguous_module.rs/mod.rs
-
-fn main() {}
 ```
 
 Please remove this ambiguity by deleting/renaming one of the candidate files.