#![cfg(not(miri))]

#[rustversion::not(nightly)]
#[ignore]
#[test]
fn test_backtrace() {}

#[rustversion::nightly]
#[test]
fn test_backtrace() {
    use anyhow::anyhow;

    let error = anyhow!("oh no!");
    let _ = error.backtrace();
}

#[rustversion::not(nightly)]
#[ignore]
#[test]
fn test_backtrace() {}

#[rustversion::nightly]
#[test]
fn test_backtrace() {
    use anyhow::anyhow;

    let error = anyhow!("oh no!");
    let _ = error.backtrace();
}

Revert "Disable backtrace test on miri"
Revert "Disable backtrace test on miri"

Fixed in nightly-2022-07-26.

Closes #246.

This reverts commit 8d25d6b2c9bb04c9f0d222ed6b900f696c0e7ebe.
