diff options
Diffstat (limited to 'tests/rustdoc/issue-118180-empty-tuple-struct.rs')
-rw-r--r-- | tests/rustdoc/issue-118180-empty-tuple-struct.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-118180-empty-tuple-struct.rs b/tests/rustdoc/issue-118180-empty-tuple-struct.rs new file mode 100644 index 000000000..bc6ddbe5d --- /dev/null +++ b/tests/rustdoc/issue-118180-empty-tuple-struct.rs @@ -0,0 +1,9 @@ +// @has issue_118180_empty_tuple_struct/enum.Enum.html +pub enum Enum { + // @has - '//*[@id="variant.Empty"]//h3' 'Empty()' + Empty(), +} + +// @has issue_118180_empty_tuple_struct/struct.Empty.html +// @has - '//pre/code' 'Empty()' +pub struct Empty(); |