]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-76501.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / rustdoc / issue-76501.rs
1 #![feature(const_fn)]
2
3 // @has 'issue_76501/fn.bloop.html' '//pre' 'pub const fn bloop() -> i32'
4 /// A useless function that always returns 1.
5 pub const fn bloop() -> i32 {
6     1
7 }
8
9 /// A struct.
10 pub struct Struct {}
11
12 impl Struct {
13     // @has 'issue_76501/struct.Struct.html' '//*[@class="method"]' 'pub const fn blurp() -> i32'
14     /// A useless function that always returns 1.
15     pub const fn blurp() -> i32 {
16         1
17     }
18 }