summaryrefslogtreecommitdiffstats
path: root/vendor/darling-0.14.4/tests/compile-fail/skip_field_not_impl_default.rs
blob: f0d44c77981d79e5256917b7cefe0094242e1950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use darling::FromMeta;

#[derive(FromMeta)]
struct NoDefault(String);

#[derive(FromMeta)]
struct Recevier {
    #[darling(skip)]
    skipped: NoDefault,

    #[darling(skip = true)]
    explicitly_skipped: NoDefault,

    #[darling(skip = false)]
    not_skipped_no_problem: NoDefault,
}

fn main() {}