Rust errors / Everything else
Rust compiler error · checked with rustc 1.99.0
Rust error E0786: A metadata file was invalid
What it meansA metadata file was invalid.
The compiler team's explanation
A metadata file was invalid.
Erroneous code example:
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.
From rustc --explain E0786 (1.99.0), part of the Rust project, MIT or Apache-2.0. Official page.
Related errors
- E0061this function takes N arguments but M were supplied
- E0412cannot find type in this scope
- E0515cannot return reference to local variable
- E0728await is only allowed inside async functions and blocks
- E0781the `"cmse-nonsecure-call"` ABI is only allowed on function pointers
- E0784union expressions should have exactly one field
- E0787naked functions must contain a single `naked_asm!` invocation
- E0793reference to field of packed struct is unaligned
Up next
Often hit nextE0061: this function takes N arguments but M were suppliedA related error from the same family.Read it next →Did this answer your question?