Rollup merge of #75941 - GuillaumeGomez:cleanup-e0761, r=Dylan-DPC

Clean up E0761 explanation

r? @Dylan-DPC
This commit is contained in:
Pietro Albini 2020-08-28 10:23:57 +02:00 committed by GitHub
commit bc553136c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.