summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-29449.rs
blob: 0d829cf6fcffe9e6644121bce715099a3fcf86ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// @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() {}
}