summaryrefslogtreecommitdiffstats
path: root/vendor/derive_builder/tests/compile-fail/deny_empty_default.rs
blob: fa5c0d0d6a9da44dae356b39bf06e310b9953ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[macro_use]
extern crate derive_builder;

// deny `#[builder(default = "")]`, because we don't want to define a meaning (yet)! :-)
#[allow(dead_code)]
#[derive(Builder)]
struct Lorem {
    #[builder(default = "")]
    ipsum: String,
}

fn main() {}