mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
20 lines
313 B
Rust
20 lines
313 B
Rust
#![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()
|
|
}
|
|
}
|