Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
8c0ec05f7dc9ef185eea9f36c5638e74e43935bf
rust/tests/rustdoc/issue-118180-empty-tuple-struct.rs

10 lines
253 B
Rust
Raw Normal View History

Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has issue_118180_empty_tuple_struct/enum.Enum.html
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.
2023-11-23 01:56:09 +01:00
pub enum Enum {
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has - '//*[@id="variant.Empty"]//h3' 'Empty()'
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.
2023-11-23 01:56:09 +01:00
Empty(),
}
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has issue_118180_empty_tuple_struct/struct.Empty.html
//@ has - '//pre/code' 'Empty()'
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.
2023-11-23 01:56:09 +01:00
pub struct Empty();
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 204ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API