summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0786.md
blob: 4a9635bf51637c2c36bd5acd0770b41d50676132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A metadata file was invalid.

Erroneous code example:

```ignore (needs extern files)
use ::foo; // error: found invalid metadata files for crate `foo`
```

When loading crates, each crate must have a valid metadata file.
Invalid files could be caused by filesystem corruption,
an IO error while reading the file, or (rarely) a bug in the compiler itself.

Consider deleting the file and recreating it,
or reporting a bug against the compiler.