Skip to content

Commit

Permalink
Rollup merge of #75941 - GuillaumeGomez:cleanup-e0761, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Clean up E0761 explanation

r? @Dylan-DPC
  • Loading branch information
pietroalbini authored Aug 28, 2020
2 parents 521b205 + c73d4cd commit bc55313
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/librustc_error_codes/error_codes/E0761.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit bc55313

Please sign in to comment.