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.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0786.html