]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0761.md
Re-use std::sealed::Sealed in os/linux/process.
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0761.md
1 Multiple candidate files were found for an out-of-line module.
2
3 Erroneous code example:
4
5 ```ignore (Multiple source files are required for compile_fail.)
6 // file: ambiguous_module/mod.rs
7
8 fn foo() {}
9
10 // file: ambiguous_module.rs
11
12 fn foo() {}
13
14 // file: lib.rs
15
16 mod ambiguous_module; // error: file for module `ambiguous_module`
17                       // found at both ambiguous_module.rs and
18                       // ambiguous_module.rs/mod.rs
19 ```
20
21 Please remove this ambiguity by deleting/renaming one of the candidate files.