summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/union-fields-html.rs
blob: 1ac01232c3e6b19c0d06b2c7a6218c0d8e45d9c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![crate_name = "foo"]

// @has 'foo/union.Union.html'
// Checking that there is a whitespace after `:`.
// @has - '//*[@id="structfield.a"]/code' 'a: u8'
// @has - '//*[@id="structfield.b"]/code' 'b: u32'
pub union Union {
    pub a: u8,
    /// tadam
    pub b: u32,
}