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