diff options
Diffstat (limited to 'vendor/displaydoc/tests/variantless.rs')
-rw-r--r-- | vendor/displaydoc/tests/variantless.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/displaydoc/tests/variantless.rs b/vendor/displaydoc/tests/variantless.rs new file mode 100644 index 000000000..bc23ed464 --- /dev/null +++ b/vendor/displaydoc/tests/variantless.rs @@ -0,0 +1,6 @@ +use displaydoc::Display;
+
+#[derive(Display)]
+enum EmptyInside {}
+
+static_assertions::assert_impl_all!(EmptyInside: core::fmt::Display);
|