debian/rust-vendor/displaydoc/tests/ui/multi_line_allow.rs
raw| 1 | use displaydoc::Display; |
| 2 | |
| 3 | /// this type is pretty swell |
| 4 | #[derive(Display)] |
| 5 | #[ignore_extra_doc_attributes] |
| 6 | enum TestType { |
| 7 | /// This one is okay |
| 8 | Variant1, |
| 9 | |
| 10 | /// Multi |
| 11 | /// line |
| 12 | /// doc. |
| 13 | Variant2, |
| 14 | |
| 15 | /// Multi |
| 16 | /// line |
| 17 | /// doc |
| 18 | /// |
| 19 | /// with |
| 20 | /// line |
| 21 | /// breaks |
| 22 | Variant3, |
| 23 | } |
| 24 | |
| 25 | static_assertions::assert_impl_all!(TestType: core::fmt::Display); |
| 26 | |
| 27 | fn main() {} |