]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-76501.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / rustdoc / issue-76501.rs
1 // @has 'issue_76501/fn.bloop.html' '//pre' 'pub const fn bloop() -> i32'
2 /// A useless function that always returns 1.
3 pub const fn bloop() -> i32 {
4     1
5 }
6
7 /// A struct.
8 pub struct Struct {}
9
10 impl Struct {
11     // @has 'issue_76501/struct.Struct.html' '//*[@class="method has-srclink"]' \
12     // 'pub const fn blurp() -> i32'
13     /// A useless function that always returns 1.
14     pub const fn blurp() -> i32 {
15         1
16     }
17 }