2024-04-06 21:41:09 +00:00
|
|
|
// https://github.com/rust-lang/rust/issues/76501
|
|
|
|
#![crate_name="foo"]
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has 'foo/fn.bloop.html' '//pre' 'pub const fn bloop() -> i32'
|
2020-09-12 14:52:12 +00:00
|
|
|
/// A useless function that always returns 1.
|
|
|
|
pub const fn bloop() -> i32 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
|
|
|
|
/// A struct.
|
|
|
|
pub struct Struct {}
|
|
|
|
|
|
|
|
impl Struct {
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ has 'foo/struct.Struct.html' '//*[@class="method"]' \
|
2021-06-02 08:59:10 +00:00
|
|
|
// 'pub const fn blurp() -> i32'
|
2020-09-12 14:52:12 +00:00
|
|
|
/// A useless function that always returns 1.
|
2020-09-12 15:24:19 +00:00
|
|
|
pub const fn blurp() -> i32 {
|
2020-09-12 14:52:12 +00:00
|
|
|
1
|
|
|
|
}
|
|
|
|
}
|