]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_error_codes/src/error_codes/E0786.md
New upstream version 1.68.2+dfsg1
[rustc.git] / compiler / rustc_error_codes / src / error_codes / E0786.md
1 A metadata file was invalid.
2
3 Erroneous code example:
4
5 ```ignore (needs extern files)
6 use ::foo; // error: found invalid metadata files for crate `foo`
7 ```
8
9 When loading crates, each crate must have a valid metadata file.
10 Invalid files could be caused by filesystem corruption,
11 an IO error while reading the file, or (rarely) a bug in the compiler itself.
12
13 Consider deleting the file and recreating it,
14 or reporting a bug against the compiler.