1
Fork 0

Clean up E0761 explanation

This commit is contained in:
Guillaume Gomez 2020-08-26 14:51:02 +02:00 committed by GitHub
parent 1a22a0ff93
commit c73d4cddcc
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.