thiserror/tests/ui/from-backtrace-backtrace.rs
David Tolnay ebebf77fe0
Format ui tests with rustfmt
`rustfmt tests/ui/*.rs`
2023-10-19 11:05:01 -07:00

15 lines
245 B
Rust

// https://github.com/dtolnay/thiserror/issues/163
use std::backtrace::Backtrace;
use thiserror::Error;
#[derive(Error, Debug)]
#[error("...")]
pub struct Error(
#[from]
#[backtrace]
std::io::Error,
Backtrace,
);
fn main() {}