# `error-iter`
[](https://docs.rs/error-iter)
[](https://travis-ci.org/parasyte/error-iter)
[](https://github.com/rust-secure-code/safety-dance/)
Use [`Error::chain`](https://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.chain) on stable Rust.
## MSRV
Supports Rust 1.37.0 and higher.
Compiles on Rust 1.31.0, but does not return the tail source. (Tests fail on anything less than 1.37.0.)
## What is this?
`Error::chain` is incredibly useful for providing error context in Rust applications. For motivation, see [RFC 2504](https://github.com/rust-lang/rfcs/blob/master/text/2504-fix-error.md). This iterator is available in nightly compilers with [#58520](https://github.com/rust-lang/rust/issues/58520) tracking stabilization.
This crate does not attempt to be 100% compatible with the stabilization effort, but does want to provide very similar functionality to stable Rust.
## Show me
`cargo run --example simple`
## Why not a derive macro?
PRs welcome! :)