rust/src/test/rustdoc/issue-76501.rs

17 lines
409 B
Rust
Raw Normal View History

// @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 {
2020-09-12 15:24:19 +00:00
// @has 'issue_76501/struct.Struct.html' '//*[@class="method"]' 'pub const fn blurp() -> i32'
/// A useless function that always returns 1.
2020-09-12 15:24:19 +00:00
pub const fn blurp() -> i32 {
1
}
}