2023-06-21 10:42:53 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has 'foo/union.Union.html'
|
2023-06-21 10:42:53 -05:00
|
|
|
// Checking that there is a whitespace after `:`.
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//*[@id="structfield.a"]/code' 'a: u8'
|
|
|
|
//@ has - '//*[@id="structfield.b"]/code' 'b: u32'
|
2023-06-21 10:42:53 -05:00
|
|
|
pub union Union {
|
|
|
|
pub a: u8,
|
|
|
|
/// tadam
|
|
|
|
pub b: u32,
|
|
|
|
}
|