about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-08-26 14:51:02 +0200
committerGitHub <noreply@github.com>2020-08-26 14:51:02 +0200
commitc73d4cddcc828a0822c29bf8649db3f5eb35c5ec (patch)
tree303dc58a1b841762ca422b1eb83fe4ac9621b0e1 /src/librustc_error_codes/error_codes
parent1a22a0ff93d63f738151f096434e732466b4a42e (diff)
downloadrust-c73d4cddcc828a0822c29bf8649db3f5eb35c5ec.tar.gz
rust-c73d4cddcc828a0822c29bf8649db3f5eb35c5ec.zip
Clean up E0761 explanation
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.