summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/disambiguate-anchors-header-29449.rs
blob: 38a4954fc1395ac1616db710009a27f0ee05d968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// https://github.com/rust-lang/rust/issues/29449
#![crate_name="issue_29449"]

// @has issue_29449/struct.Foo.html
pub struct Foo;

impl Foo {
    // @has - '//*[@id="examples"]//a' 'Examples'
    // @has - '//*[@id="panics"]//a' 'Panics'
    /// # Examples
    /// # Panics
    pub fn bar() {}

    // @has - '//*[@id="examples-1"]//a' 'Examples'
    /// # Examples
    pub fn bar_1() {}

    // @has - '//*[@id="examples-2"]//a' 'Examples'
    // @has - '//*[@id="panics-1"]//a' 'Panics'
    /// # Examples
    /// # Panics
    pub fn bar_2() {}
}