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 Permalink Normal View History

2024-09-12 15:38:24 -05: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,
}