rust/tests/rustdoc/intra-doc-link-method-trait-impl-72340.rs

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

22 lines
364 B
Rust
Raw Normal View History

2024-04-06 21:41:09 +00:00
// https://github.com/rust-lang/rust/issues/72340
#![crate_name = "foo"]
pub struct Body;
impl Body {
pub fn empty() -> Self {
Body
}
}
impl Default for Body {
//@ has foo/struct.Body.html '//a/@href' 'struct.Body.html#method.empty'
/// Returns [`Body::empty()`](Body::empty).
fn default() -> Body {
Body::empty()
}
}