Debian Codegraph @

.cargo/vendor/thiserror/tests/ui/fallback-impl-with-display.rs

raw
1 use core::fmt::{self, Display};
2 use thiserror::Error;
3
4 #[derive(Error, Debug)]
5 #[error]
6 pub struct MyError;
7
8 impl Display for MyError {
9 fn fmt(&self, _formatter: &mut fmt::Formatter) -> fmt::Result {
10 unimplemented!()
11 }
12 }
13
14 fn main() {}