Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

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 until ConfigError also implements Display (and Debug).

Read the full section →