]> git.proxmox.com Git - rustc.git/blob - vendor/derive_builder/tests/run-pass/attributes.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / vendor / derive_builder / tests / run-pass / attributes.rs
1 #[macro_use]
2 extern crate derive_builder;
3
4 /// This is a doc comment for the struct
5 #[warn(missing_docs)]
6 #[allow(non_snake_case, dead_code)]
7 #[derive(Builder)]
8 struct Lorem {
9 /// This is a doc comment for a field
10 field_with_doc_comment: String,
11 #[allow(missing_docs)]
12 undocumented: String,
13 #[allow(non_snake_case)]
14 CamelCase: i32,
15 #[cfg(target_os = "macos")]
16 mac_only: bool,
17 #[allow(non_snake_case)]
18 #[cfg(target_os = "linux")]
19 LinuxOnly: (),
20 }
21
22 fn main() { }