| 1 | #![allow(clippy::let_underscore_untyped)] |
| 2 | |
| 3 | #[rustversionrust-analyzer cargo rustversion 1.0.22 crate/::notrust-analyzer cargo rustversion 1.0.22 not:(nightly)] |
| 4 | #[ignore = "requires nightly"] |
| 5 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 6 | fn test_backtracerust-analyzer cargo anyhow 1.0.103 test_backtrace().() {} |
| 7 | |
| 8 | #[rustversionrust-analyzer cargo rustversion 1.0.22 crate/::nightlyrust-analyzer cargo rustversion 1.0.22 nightly:] |
| 9 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 10 | fn test_backtrace() { |
| 11 | use anyhowrust-analyzer cargo anyhow 1.0.103 crate/::anyhowrust-analyzer cargo anyhow 1.0.103 macros/anyhow!; |
| 12 | |
| 13 | let error = anyhowrust-analyzer cargo anyhow 1.0.103 crate/!("oh no!"); |
| 14 | let _ = error.backtrace(); |
| 15 | } |