mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-29 06:59:48 +00:00
24 lines
521 B
Rust
24 lines
521 B
Rust
//! Some people may have `#![deny(missing_docs)]` in their crate.
|
|
//!
|
|
//! NOTE: This can only be tested in examples, but not integration tests.
|
|
#![deny(missing_docs)]
|
|
|
|
#[macro_use]
|
|
extern crate derive_builder;
|
|
|
|
/// Traditional form of communication.
|
|
#[derive(Debug, Builder)]
|
|
#[builder(setter(into))]
|
|
pub struct Letter {
|
|
/// Be creative.
|
|
pub message: String,
|
|
}
|
|
|
|
fn main() {
|
|
let x = LetterBuilder::default()
|
|
.message("Hello World!")
|
|
.build()
|
|
.unwrap();
|
|
println!("{}", x.message);
|
|
}
|