// FIXME: needs to be updated to provide_ref/request_ref API.
// https://github.com/rust-lang/rust/pull/99431
#![cfg(any())]

#[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 until converted to provider API"
Revert "Disable backtrace test until converted to provider API"

This reverts commit e55761e27b05de6d5f9dc583285d26cf77831fba.
