e0ec9c0b9c
Don't display `// some variants omitted` if enum is marked `#[non_exhaustive]`
12 lines
228 B
Rust
12 lines
228 B
Rust
// @has issue_108925/enum.MyThing.html
|
|
// @has - '//code' 'Shown'
|
|
// @!has - '//code' 'NotShown'
|
|
// @!has - '//code' '// some variants omitted'
|
|
#[non_exhaustive]
|
|
pub enum MyThing {
|
|
Shown,
|
|
#[doc(hidden)]
|
|
NotShown,
|
|
}
|
|
|