diff options
Diffstat (limited to 'vendor/derive_builder/tests/run-pass/attributes.rs')
-rw-r--r-- | vendor/derive_builder/tests/run-pass/attributes.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/derive_builder/tests/run-pass/attributes.rs b/vendor/derive_builder/tests/run-pass/attributes.rs new file mode 100644 index 000000000..46a6fd8f3 --- /dev/null +++ b/vendor/derive_builder/tests/run-pass/attributes.rs @@ -0,0 +1,22 @@ +#[macro_use] +extern crate derive_builder; + +/// This is a doc comment for the struct +#[warn(missing_docs)] +#[allow(non_snake_case, dead_code)] +#[derive(Builder)] +struct Lorem { + /// This is a doc comment for a field + field_with_doc_comment: String, + #[allow(missing_docs)] + undocumented: String, + #[allow(non_snake_case)] + CamelCase: i32, + #[cfg(target_os = "macos")] + mac_only: bool, + #[allow(non_snake_case)] + #[cfg(target_os = "linux")] + LinuxOnly: (), +} + +fn main() { } |