]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-72340.rs
Rollup merge of #107773 - Mark-Simulacrum:rename-auto-template, r=estebank
[rust.git] / tests / rustdoc / issue-72340.rs
1 #![crate_name = "foo"]
2
3 pub struct Body;
4
5 impl Body {
6     pub fn empty() -> Self {
7         Body
8     }
9
10 }
11
12 impl Default for Body {
13     // @has foo/struct.Body.html '//a/@href' 'struct.Body.html#method.empty'
14
15     /// Returns [`Body::empty()`](Body::empty).
16     fn default() -> Body {
17         Body::empty()
18     }
19 }