]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/coverage/enum-tuple.rs
Rollup merge of #93840 - yaahc:termination-stabilization-celebration-station, r=josht...
[rust.git] / src / test / rustdoc-ui / coverage / enum-tuple.rs
1 // compile-flags:-Z unstable-options --show-coverage
2 // check-pass
3
4 //! (remember the crate root is still a module)
5
6 /// so check out this enum here
7 pub enum ThisEnum {
8     /// No need to document the field if there is only one in a tuple variant!
9     VarOne(String),
10     /// But if there is more than one... still fine!
11     VarTwo(String, String),
12 }
13
14 /// Struct.
15 pub struct ThisStruct(u32);
16
17 /// Struct.
18 pub struct ThisStruct2(u32, u8);