2023-10-16 16:12:17 -07:00
|
|
|
// https://github.com/rust-lang/rust/issues/29449
|
2023-10-16 15:41:04 -07:00
|
|
|
#![crate_name="issue_29449"]
|
|
|
|
|
2015-12-05 23:09:20 +01:00
|
|
|
// @has issue_29449/struct.Foo.html
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
2022-02-25 15:57:01 +01:00
|
|
|
// @has - '//*[@id="examples"]' 'Examples'
|
|
|
|
// @has - '//*[@id="examples"]/a[@href="#examples"]' '§'
|
|
|
|
// @has - '//*[@id="panics"]' 'Panics'
|
|
|
|
// @has - '//*[@id="panics"]/a[@href="#panics"]' '§'
|
2015-12-05 23:09:20 +01:00
|
|
|
/// # Examples
|
|
|
|
/// # Panics
|
|
|
|
pub fn bar() {}
|
|
|
|
|
2022-02-25 15:57:01 +01:00
|
|
|
// @has - '//*[@id="examples-1"]' 'Examples'
|
|
|
|
// @has - '//*[@id="examples-1"]/a[@href="#examples-1"]' '§'
|
2015-12-05 23:09:20 +01:00
|
|
|
/// # Examples
|
|
|
|
pub fn bar_1() {}
|
|
|
|
|
2022-02-25 15:57:01 +01:00
|
|
|
// @has - '//*[@id="examples-2"]' 'Examples'
|
|
|
|
// @has - '//*[@id="examples-2"]/a[@href="#examples-2"]' '§'
|
|
|
|
// @has - '//*[@id="panics-1"]' 'Panics'
|
|
|
|
// @has - '//*[@id="panics-1"]/a[@href="#panics-1"]' '§'
|
2015-12-05 23:09:20 +01:00
|
|
|
/// # Examples
|
|
|
|
/// # Panics
|
|
|
|
pub fn bar_2() {}
|
|
|
|
}
|