]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0583.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0583.md
1 A file wasn't found for an out-of-line module.
2
3 Erroneous code example:
4
5 ```compile_fail,E0583
6 mod file_that_doesnt_exist; // error: file not found for module
7
8 fn main() {}
9 ```
10
11 Please be sure that a file corresponding to the module exists. If you
12 want to use a module named `file_that_doesnt_exist`, you need to have a file
13 named `file_that_doesnt_exist.rs` or `file_that_doesnt_exist/mod.rs` in the
14 same directory.