about summary refs log tree commit diff
path: root/tests/rustdoc/union-fields-html.rs
blob: 8550980b89617ff3920d0872cec808c7e7435a78 (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,
}