0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-28 21:12:18 +01:00
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();