Debian Codegraph @

.cargo/vendor/anyhow/tests/test_backtrace.rs

raw
1 #![allow(clippy::let_underscore_untyped)]
2
3 #[rustversion::not(nightly)]
4 #[ignore = "requires nightly"]
5 #[test]
6 fn test_backtrace() {}
7
8 #[rustversion::nightly]
9 #[test]
10 fn test_backtrace() {
11 use anyhow::anyhow;
12
13 let error = anyhow!("oh no!");
14 let _ = error.backtrace();
15 }