Error trait
The standard trait that marks a type as an error.
std::error::Error requires Debug and Display and offers source(), which returns the lower-level error that caused this one.
Examples
impl std::error::Error for ConfigError {}needs no body, but it fails with E0277 untilConfigErroralso implementsDisplay(andDebug).
See also