#462·anyhow

Construct Error with existing backtrace

Author: wanghenry-msftCreated Sep 17, 2026Updated Sep 17, 2026

Currently the only way to construct an anyhow::Error with a backtrace that we previously captured is through the (still) unstable `error_generic_member_access` feature. Would like to have a variant of the `Error::new` function that allows you to pass a Backtrace as well.