about summary refs log tree commit diff
path: root/tests/rustdoc/enum/enum-non-exhaustive-108925.rs
blob: ea2462449d2b7578f3732d42581020877483b983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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,
}