2021-11-24 15:16:10 -06:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
// @has 'foo/struct.S1.html'
|
2023-01-10 12:35:37 -06:00
|
|
|
// @snapshot S1_top-doc - '//details[@class="toggle top-doc"]/div[@class="docblock"]'
|
2021-11-24 15:16:10 -06:00
|
|
|
|
|
|
|
#[doc = "Hello world!\n\n"]
|
|
|
|
/// Goodbye!
|
|
|
|
#[doc = " Hello again!\n"]
|
|
|
|
pub struct S1;
|
|
|
|
|
|
|
|
// @has 'foo/struct.S2.html'
|
2023-01-10 12:35:37 -06:00
|
|
|
// @snapshot S2_top-doc - '//details[@class="toggle top-doc"]/div[@class="docblock"]'
|
2021-11-24 15:16:10 -06:00
|
|
|
|
|
|
|
/// Hello world!
|
|
|
|
///
|
|
|
|
#[doc = "Goodbye!"]
|
|
|
|
/// Hello again!
|
|
|
|
pub struct S2;
|
2022-01-01 04:04:44 -06:00
|
|
|
|
|
|
|
// @has 'foo/struct.S3.html'
|
2023-01-10 12:35:37 -06:00
|
|
|
// @snapshot S3_top-doc - '//details[@class="toggle top-doc"]/div[@class="docblock"]'
|
2022-01-01 04:04:44 -06:00
|
|
|
/** Par 1
|
|
|
|
*/ ///
|
|
|
|
/// Par 2
|
|
|
|
pub struct S3;
|