rust/tests/rustdoc/const-fn-76501.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
474 B
Rust
Raw Normal View History

2024-04-06 16:41:09 -05:00
// https://github.com/rust-lang/rust/issues/76501
#![crate_name="foo"]
//@ has 'foo/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 {
//@ has 'foo/struct.Struct.html' '//*[@class="method"]' \
2021-06-02 03:59:10 -05:00
// 'pub const fn blurp() -> i32'
/// A useless function that always returns 1.
2020-09-12 10:24:19 -05:00
pub const fn blurp() -> i32 {
1
}
}