summaryrefslogtreecommitdiffstats
path: root/vendor/eyre/tests/test_context_access.rs
blob: 54e3da49c5eeede7490b1cbb464ae970f00ed469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod common;

use crate::common::maybe_install_handler;

#[test]
fn test_context() {
    use eyre::{eyre, Report};

    maybe_install_handler().unwrap();

    let error: Report = eyre!("oh no!");
    let _ = error.context();
}