summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-76501.rs
blob: 5caea0ec992443b3fdbb469acbbd70ff084b2f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// @has 'issue_76501/fn.bloop.html' '//pre' 'pub const fn bloop() -> i32'
/// A useless function that always returns 1.
pub const fn bloop() -> i32 {
    1
}

/// A struct.
pub struct Struct {}

impl Struct {
    // @has 'issue_76501/struct.Struct.html' '//*[@class="method"]' \
    // 'pub const fn blurp() -> i32'
    /// A useless function that always returns 1.
    pub const fn blurp() -> i32 {
        1
    }
}