rustc/vendor/thiserror/tests/ui/fallback-impl-with-display.rs
2024-06-19 10:24:51 +02:00

15 lines
250 B
Rust

use std::fmt::{self, Display};
use thiserror::Error;
#[derive(Error, Debug)]
#[error]
pub struct MyError;
impl Display for MyError {
fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
unimplemented!()
}
}
fn main() {}