diff options
Diffstat (limited to 'third_party/rust/thiserror/tests/ui/no-display.rs')
-rw-r--r-- | third_party/rust/thiserror/tests/ui/no-display.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/thiserror/tests/ui/no-display.rs b/third_party/rust/thiserror/tests/ui/no-display.rs new file mode 100644 index 0000000000..181a66e02c --- /dev/null +++ b/third_party/rust/thiserror/tests/ui/no-display.rs @@ -0,0 +1,12 @@ +use thiserror::Error; + +#[derive(Debug)] +struct NoDisplay; + +#[derive(Error, Debug)] +#[error("thread: {thread}")] +pub struct Error { + thread: NoDisplay, +} + +fn main() {} |