]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-76501.rs
Rollup merge of #82191 - Soveu:dedup, r=nagisa
[rust.git] / src / test / 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"]' 'pub const fn blurp() -> i32'
12     /// A useless function that always returns 1.
13     pub const fn blurp() -> i32 {
14         1
15     }
16 }