summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/issue-76501.rs
blob: a90e0fea09223064332aa8a094898249a7e9308a (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 has-srclink"]' \
    // 'pub const fn blurp() -> i32'
    /// A useless function that always returns 1.
    pub const fn blurp() -> i32 {
        1
    }
}