rust/tests/rustdoc/empty-tuple-struct-118180.rs

13 lines
270 B
Rust

// https://github.com/rust-lang/rust/issues/118180
#![crate_name="foo"]
//@ has foo/enum.Enum.html
pub enum Enum {
//@ has - '//*[@id="variant.Empty"]//h3' 'Empty()'
Empty(),
}
//@ has foo/struct.Empty.html
//@ has - '//pre/code' 'Empty()'
pub struct Empty();