2021-11-24 13:16:10 -08:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
// @has 'foo/struct.S1.html'
|
2021-11-24 19:35:18 -08:00
|
|
|
// @snapshot S1_top-doc - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]'
|
2021-11-24 13:16:10 -08:00
|
|
|
|
|
|
|
#[doc = "Hello world!\n\n"]
|
|
|
|
/// Goodbye!
|
|
|
|
#[doc = " Hello again!\n"]
|
|
|
|
pub struct S1;
|
|
|
|
|
|
|
|
// @has 'foo/struct.S2.html'
|
2021-11-24 19:35:18 -08:00
|
|
|
// @snapshot S2_top-doc - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]'
|
2021-11-24 13:16:10 -08:00
|
|
|
|
|
|
|
/// Hello world!
|
|
|
|
///
|
|
|
|
#[doc = "Goodbye!"]
|
|
|
|
/// Hello again!
|
|
|
|
pub struct S2;
|