Debian Codegraph @

.cargo/vendor/thiserror/tests/ui/no-display.rs

raw
1 use thiserror::Error;
2
3 #[derive(Debug)]
4 struct NoDisplay;
5
6 #[derive(Error, Debug)]
7 #[error("thread: {thread}")]
8 pub struct Error {
9 thread: NoDisplay,
10 }
11
12 #[derive(Error, Debug)]
13 #[error("thread: {thread:o}")]
14 pub struct ErrorOctal {
15 thread: NoDisplay,
16 }
17
18 fn main() {}