0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 21:12:18 +01:00
rust/tests/rustdoc/enum-non-exhaustive-108925.rs

14 lines
291 B
Rust

// 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,
}