diff options
| author | Kyuuhachi <caagr98@gmail.com> | 2023-11-23 01:56:09 +0100 |
|---|---|---|
| committer | Kyuuhachi <caagr98@gmail.com> | 2023-11-23 16:04:10 +0100 |
| commit | a21d7713db7c19d126cc4dd38abd56ed73bdb729 (patch) | |
| tree | 4fe8d6210e448b0ce51766f007d9dd725b80d3e1 /tests/rustdoc/issue-118180-empty-tuple-struct.rs | |
| parent | 1e9dda77b5b8e690c7e21871bbd2dcf182e1a841 (diff) | |
| download | rust-a21d7713db7c19d126cc4dd38abd56ed73bdb729.tar.gz rust-a21d7713db7c19d126cc4dd38abd56ed73bdb729.zip | |
Don't print "private fields" on empty tuple structs
Test for presence rather than absence Remove redundant tests Issues in those parts will likely be caught by other parts of the test suite.
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 00000000000..bc6ddbe5def --- /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(); |
