rust/tests/rustdoc/enum-non-exhaustive-108925.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
291 B
Rust
Raw Normal View History

2024-09-12 20:38:24 +00:00
// https://github.com/rust-lang/rust/issues/108925
#![crate_name="foo"]
//@ has foo/enum.MyThing.html
//@ has - '//code' 'Shown'
//@ !has - '//code' 'NotShown'
//@ !has - '//code' '// some variants omitted'
#[non_exhaustive]
pub enum MyThing {
Shown,
#[doc(hidden)]
NotShown,
}