summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0761.md
blob: 760c5897698aa6137cf5767a1d19ea16f2f6c81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Multiple candidate files were found for an out-of-line module.

Erroneous code example:

```ignore (Multiple source files are required for compile_fail.)
// file: ambiguous_module/mod.rs

fn foo() {}

// file: ambiguous_module.rs

fn foo() {}

// file: lib.rs

mod ambiguous_module; // error: file for module `ambiguous_module`
                      // found at both ambiguous_module.rs and
                      // ambiguous_module.rs/mod.rs
```

Please remove this ambiguity by deleting/renaming one of the candidate files.