Skip to content
Myr

Add test that backtrace method exists on nightly

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 5ada297 · Browse files · 2 files+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−0 removed

  • tests:+13 added−0 removed
  • other:+1 added−0 removed

2 files+14 added−0 removed

added:tests/test_backtrace.rs+13 added
1#[rustversion::not(nightly)]2#[ignore]3#[test]4fn test_backtrace() {}56#[rustversion::nightly]7#[test]8fn test_backtrace() {9 use anyhow::anyhow;1011 let error = anyhow!("oh no!");12 let _ = error.backtrace();13}
modified:Cargo.toml+1 added