The [error trait has been moved to core](https://github.com/rust-lang/rust/issues/103765).