summaryrefslogtreecommitdiffstats
path: root/vendor/anyhow/tests/test_backtrace.rs
blob: c89559e6719d9b718f5a636c16a0375bfdf72fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(clippy::let_underscore_untyped)]

#[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();
}