Debian Codegraph @

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

raw
1 use std::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() {}