Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
42ee400b0ffa7eeffb51e5b1e2e3fbcc6a130e0c
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: 200ms 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