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