Clean up E0761 explanation
This commit is contained in:
parent
1a22a0ff93
commit
c73d4cddcc
1 changed files with 3 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue