debian/rust-vendor/displaydoc/tests/ui/enum_prefix.rs
raw| 1 | use displaydoc::Display; |
| 2 | |
| 3 | /// this type is pretty swell |
| 4 | #[derive(Display)] |
| 5 | #[prefix_enum_doc_attributes] |
| 6 | enum TestType { |
| 7 | /// this variant is too |
| 8 | Variant1, |
| 9 | |
| 10 | /// this variant is two |
| 11 | Variant2, |
| 12 | } |
| 13 | |
| 14 | static_assertions::assert_impl_all!(TestType: core::fmt::Display); |
| 15 | |
| 16 | fn main() {} |